Proper method to pass a php session in a url

They have: 238 posts

Joined: May 2002

What is the proper method to add a php session to a url. I've seen some sites with:

?PHPSESSID=blah
?s=blah
?s=

Are all these proper methods? Some scripts I've seen just have the ?s= without the actual session there, how exactly does this work?

Thanks in advance.

He has: 296 posts

Joined: May 2002

with the ?s=blah and ?s= the script probably is using its own sessions function. I know that vB and some other forum software does this. With PHPs built in sessions the PHPSESSID=blah is automatically added to the link as far as I know. When I did a HTML validation on one of my sites with PHP sessions it did.

When the URL has just ?s= without the SID then you either have no session or the script is using cookies to pass it.

[James Logsdon]

They have: 238 posts

Joined: May 2002

Thanks for that necrotic.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.