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

hi, have you tried putting the session_start() ?

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,

Glad to hear that! you might try my site, just take a look, it might help you someday :)
http://easycode.unoprojects.com/

really nice page britoniah3480.
:icon_wink:

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!

really nice page britoniah3480.
:icon_wink:

Thanks man! I hope it can help you :)

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!

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 ;)

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

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!

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

no problem britoniah3480. Ϋ

you can call me Darz if you want :3

you can call me Darz if you want :3

thanks again Darz. Ϋ

No prob ;)

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

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

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.