PHP naming sessions?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • andrewteg
    New Member
    • Aug 2007
    • 22

    PHP naming sessions?

    I have a few apps on my localhost that use the same session variable names ... as it stands now I can't be logged into both at the same time because of how they use the variables. This is good if they're ever installed on a shared server together but can get annoying. I was wondering if there is an easy way to name my sessions so the PHP session object realized they were in fact different.

    Hope this makes sense and thanks!
  • RoninOni
    New Member
    • Mar 2008
    • 9

    #2
    run this in an include on every page
    [PHP]session_name("s iteName");
    session_start() ;
    ob_start();[/PHP]

    replacing "siteName" with whatever identifier you want for those sessions

    Comment

    Working...