in reply to Re: Re: Apache Session own ID
in thread Apache Session own ID

I do not get your question then cause you asked Hi monks! Does anyone have an idea about how to generate a custom session ID for Apache::Session? That lead me to believe that you wanted to generate a new ID, your way, instead of md5. What is your question then.


-Waswas

Replies are listed 'Best First'.
Re: Re: Re: Re: Apache Session own ID
by roberlamerma (Initiate) on Dec 10, 2003 at 08:16 UTC
    Yes yes, you are right. By "custom ID" I meant some ID I already created. It is possible to do so using Flex? Thanx
      Your question still is not clear. but, if you want to set a session ID you can use cookies or encoded urls to do so on the clients webbrowser. some example code is:
      my $session_cookie = "SESSION_ID=$session{_session_id};"; $r->header_out("Set-Cookie" => $session_cookie);
      Once the session ID is set, you don't need to generate a new one, you attach data to it and it is persistent. If you are asking on how you would go about generating your own type of ID and using that as the ID for everything, I answered that question in the first place. You make a new module in the same directory as the MD5 session id module, call it something else and return the structs just like MD5 does. you then use flex to tell appache:session to use your module for the generation of the ID. If you want something completely different, roll your own and ask questions here where we do not have to try to read your mind.


      -Waswas