0

Hi,
I am trying to set more than 1 variable in a $_SESSION however I can't seem to get it to work.

I also can't find anywhere, if it's actually possible to have 2 sessions set at the same time. Hence the Question.
So can you set 2 sessions at the same time?
LIKE:

$_SESSION['user'] = $username;
$_SESSION['userID'] = $userID;
$_SESSION['accountNo'] = $accountNo;

Or is there another way that I can do the same thing? if this isn't possible.
otherwise, if it is possible then ... I'm stumped why mines not working..

Thanks for your help

5
Contributors
16
Replies
17
Views
7 Years
Discussion Span
Last Post by MooGeek
0

hi, have you tried putting the session_start() ?

hahaha
I'm an idiot. It was that then it was some other code that was screwing it up.

Thanks for pointing out the obvious, which is exactly what I needed!

cheers,

0

hahaha
I'm an idiot. It was that then it was some other code that was screwing it up.

Thanks for pointing out the obvious, which is exactly what I needed!

cheers,

please don't forget to mark this thread as solved. Ϋ
happy day!

0

Thanks man! I hope it can help you :)

I'm getting used to be called "man". this is crazy. Ϋ
anyway, thanks to you.

:)happy day ahead!

0

I'm getting used to be called "man". this is crazy.

Add to your signature
Ms. Kim and put it in little large fonts. May be it will reduce the count ;)

0

Add to your signature
Ms. Kim and put it in little large fonts. May be it will reduce the count ;)

thanks for the suggestion evstevemd. Ϋ
hope it'll really reduce the count after doing what you said.

:D happy day ahead man!

0

Ahahaha! I'm sorry! XD yeah you should put something on your sig =)

no problem britoniah3480. Ϋ

0

Nice tool brit, nice and easy to use, thanks alot.

Did you like it? thanks! :) please spread the word too :)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.