php - create session specific data -


Good afternoon, everyone is with a doubt.

Already have an active session, and I have to create another session. With more data.

And this new session is getting empty and the data is going into the first session.

Anyone know how to add data to the specified session by name.

I would be very grateful for help.

You can not have multiple sessions active at the same time. Although a session is just an associative array, so you can create many namespaces inside the use of different keys. For example

  $ _ session ['one'] = $ foo; $ _SESSION ['two'] = $ bar;    

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -