Session ID (SID)

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

User avatar
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Session ID (SID)

Postby ruturajv » Mon Apr 07, 2003 5:35 am

AS in ASP, we have SESSION.SessionID

In PHP, how do you pass it through url

eg can you give ?log=<?php echo(SID) ?>


New php-forum User
New php-forum User
Posts: 40
Joined: Fri Aug 09, 2002 11:53 am
Location: Rochester, NY

Postby Kenneth » Tue Apr 08, 2003 5:01 am

You can do either session_id(); or $PHPSESSID, which is the most used. Do something like this: ... $PHPSESSID, and it may look something lik: ... 704583a093

Hope this helps!

New php-forum User
New php-forum User
Posts: 3
Joined: Fri Apr 11, 2003 1:00 pm

Postby daemon80 » Fri Apr 11, 2003 1:57 pm

i think that SID works too.
header("Location: something.php?SID=$sessid");
Not sure if it works. But hey... just do a start_session(); at the start of each page and until he closes the browser u'll have that session.

Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 7 guests