Jump to content

Passing session id between pages


raven74

Recommended Posts

I use the $_GET method, appending the PHPSESSID onto the links, to pass the session id between pages. I don't like this method because it appends a long md5 code onto the url. Is there any other way to pass session id's between pages apart from the cookie method ?

Link to comment
Share on other sites

I'm a noobie especially with sessions...

 

Session is created on pageA and I want to pass it to pageB which basically has not much php code in it.

 

What code do I have to put on each page?

 

On pageB ??:

$_SESSION["PHPSESSID"]="what?";

 

I've been quite a long time trying to find an answer to this "problem". A reference to a tutorial or a little bit more detail would be extraordinary.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.