Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: non-cookie session maintenance

by pfaut (Priest)
on Mar 25, 2003 at 03:37 UTC ( #245607=note: print w/replies, xml ) Need Help??


in reply to non-cookie session maintenance

Some ways to pass a session ID around:

  • Cookie
  • PATH_INFO - http://my.host.com/myscript.cgi/1234567890/function
  • URI Parameter - http://my.host.com/myscript.cgi?sessionid=1234567890
  • Hidden fields in forms

The framework I use for web apps attempts to set a cookie. If that fails, it builds its URIs to include the session id. It can then pull the session ID out of $ENV{PATH_INFO}.

--- print map { my ($m)=1<<hex($_)&11?' ':''; $m.=substr('AHJPacehklnorstu',hex($_),1) } split //,'2fde0abe76c36c914586c';

Replies are listed 'Best First'.
Re: Re: non-cookie session maintenance
by UnderMine (Friar) on Mar 25, 2003 at 12:19 UTC
    I would add to this using Perl Trans Handlers in apache :-
    • URI Path - http://my.host.com/1234567890/myscript.cgi
    can then set a $ENV{sessionid}=1234567890 whilst doing some simple security.

    Just my thoughts
    UnderMine

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://245607]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2021-04-10 22:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?