saving session data

Discussion in 'Programming' started by toasted-owl, May 3, 2007.

  1. #1
    I am currently trying to recover session information from a page other than index.php. When I save the data and retrieve it on index.php it is ok but if I try loading the same page under a different name, it doesn't work.

    I modified session.use_trans_sid from 0 to 1 and it works under a name other than index.php.

    Is there another way to retrieve session data by directly loading a page other than index.php without having to set session.use_trans_sid to 1?

    thanks!
     
    toasted-owl, May 3, 2007 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    Your post is very confusing to me, I dont really get what you want I don't think.

    However, I'll have a go, if you got an index.php that uses the session sglobal to store data and you need to access it on another page within that same domain then call session_start(); at the top of the "another" page, the session will be continued and your data preserved.

    That might be useless information I don't know, if you could explain a little better or show some code ( I [programmers] understand code better than humans ) that would be useful
     
    krakjoe, May 4, 2007 IP