Results 1 to 6 of 6

Thread: Sessions

  1. #1
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default Sessions

    Well I have 2 panels open, one is our DJ Panel, and the other is our new user system.

    They both use sessions, there session ids are all different.

    But, if I log into the DJ Panel, then I cant use the user system because if I use the user system and dj panel at the same time, the session ends :S

    Any idea why this is happening?

    Moved by Invent (Forum Moderator) from Designing & Development: Please post in the correct forum next time, thanks .
    Last edited by Invent; 24-08-2008 at 01:21 AM.

  2. #2
    Join Date
    May 2008
    Posts
    605
    Tokens
    0

  3. #3
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    Quote Originally Posted by Excellent1 View Post
    Are you starting the sessions on both features?
    They both have there own sessions.
    I read that if a PHP script is running in the background, you have to use session_name();

    Erm, I have no idea how to use this though

    Oh, that was easy.
    Instead of using just session_start(), you add session_name("name") just before each of them.

    So I solved the problem.. well not on my own
    Last edited by Moh; 23-08-2008 at 10:39 PM.

  4. #4
    Join Date
    May 2008
    Posts
    605
    Tokens
    0

    Default

    Quote Originally Posted by Jack120 View Post
    They both have there own sessions.
    I read that if a PHP script is running in the background, you have to use session_name();

    Erm, I have no idea how to use this though

    Oh, that was easy.
    Instead of using just session_start(), you add session_name("name") just before each of them.

    So I solved the problem.. well not on my own
    Yeah was going to say you're probably connecting to the same database? just different tables so the session is logging you into one feature and out of the other because you're not identifying anything

  5. #5
    Join Date
    Jun 2005
    Posts
    2,688
    Tokens
    0

    Latest Awards:

    Default

    regenerate the session ID

  6. #6
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Not sure if it has been asked, but are both sessions named the same? ;P

    regenerate the session ID
    If you do that, isn't it going to log you out of one or the other?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •