quick question on session_start()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
bckennyw
Forum Newbie
Posts: 11
Joined: Wed Nov 26, 2003 10:25 am

quick question on session_start()

Post by bckennyw »

Just wondering what would happen if I do session_start() twice in the same page?

Thanks!
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

try it and find out

i don't think anything will happen as such, but why would you want to?

Mark
bckennyw
Forum Newbie
Posts: 11
Joined: Wed Nov 26, 2003 10:25 am

Post by bckennyw »

Ouch! Alright =)

I did it 'cuz I wanna put both form submittion handling and data displaying on the same PHP page, but I'm not really good at using the isset() function.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Sorry, didn't mean to sound abrubt, its cos i am at work, so i just get straight to the posint instead of typinf all the nice stuff :)
bckennyw wrote:...but I'm not really good at using the isset() function.
If you need help with this and wanna become good using it, thats what we are all here for.

Mark
Post Reply