Session_name

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bigoxygen@gmail.com

    Session_name

    Hi

    Is is possible to set the session_name using a defined constant?

    For example

    session_name(UN IQUE_NAME);

    where UNIQUE_NAME is defined in another file

    define('UNIQUE_ NAME', 'MRKLB');

  • Daniel Tryba

    #2
    Re: Session_name

    bigoxygen@gmail .com wrote:[color=blue]
    > Is is possible to set the session_name using a defined constant?
    >
    > For example
    >
    > session_name(UN IQUE_NAME);
    >
    > where UNIQUE_NAME is defined in another file
    >
    > define('UNIQUE_ NAME', 'MRKLB');[/color]

    Did you try?

    <yoda>
    Do or do not. There is no try
    </yoda>

    So I guess you did the above and failed?

    Comment

    • bigoxygen@gmail.com

      #3
      Re: Session_name

      Why would I not listen to starwars wisdom?

      Of course I tried and it didn't work

      Comment

      • Daniel Tryba

        #4
        Re: Session_name

        bigoxygen@gmail .com wrote:[color=blue]
        > Why would I not listen to starwars wisdom?
        >
        > Of course I tried and it didn't work[/color]

        How comes it works for me then?
        http://tmp.tryba.nl/sessname.php(s)

        Comment

        • Toby

          #5
          Re: Session_name

          I believe you have to set the session id before any html is output on
          the page (following the same rules as cookies).

          Comment

          Working...