How to manage single session on two different php scripts? -


I have installed two different PHP scripts on my server, on one other sub-directory on the root, however, I want to continue the subtitle user session on another sub-directory script. I need this session to enable chat on another directory script.

Subdirectory I have created a different PHP file on sub-directory to track session variables.

  Array ([user_email] => xxxx@example.com [users_id] = & gt; 275 [first_name] => Sammy [last_name] => Scurry [user Name] = & gt; 275 [mobile] = & gt; XXXXXXXXX [chat_sms_sent] => message to off-line friends.)   

Although Array ([message] => Array () [keepForm] = & gt; Array () [form] => Array () [Chat_sms_sent] => Messages have been sent to off-line friends.)

Can solve a problem

thanks

session from a directory Are not connected if If you call session_start () at the top of both scripts, then both the $ _ session variable should have the same content.

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -