(jeffa) Re: Session management and PERL
by jeffa (Bishop) on Dec 21, 2001 at 21:04 UTC
|
| [reply] |
Re: Session management and PERL
by techy (Scribe) on Dec 21, 2001 at 22:17 UTC
|
Using Apache::Session in combination with Apache::StickyQuery would allow sessions that are stored without using cookies. If you are not using mod_perl, it is also possible to do your own URL rewriting, by rewriting all links as either nextpage.cgi?sess_id=(apache session id) or nextpage.cgi/(apache session id) (useful for POST operations), and then using that session id in the next page. Thanks,
techy | [reply] |
|
|
I am paying the price for an incomplete question! I should have mentioned that I am also forced to use iPlanet as my web server... is there still hope for me??!!!
Rajesh
| [reply] |
|
|
I have the same problem. I am on an iPlanet web server and cannot use mod-perl or Apache::Session. Are alternative perl modules available?
| [reply] |
|
|
Re: Session management and PERL
by perrin (Chancellor) on Dec 21, 2001 at 22:25 UTC
|
Apache::ASP has support for a Session object and can do it without cookies. Check it out. | [reply] |
Re: Session management and PERL
by guha (Priest) on Dec 21, 2001 at 21:35 UTC
|
You could use PerlScript if you're on IIS and have access to ActivePerl
This gives you programming in perl and access to the same objects, Session, Request, Server etc, that ASP uses. In fact you could even write some of the scripts in PerlScript and wri ... , no I mean include, some ASP-scripts if necessary.
However it seems, to me at least, that ASP and PerlScript can't be used in the same script
HTH | [reply] |
Re: Session management and PERL
by Fastolfe (Vicar) on Dec 21, 2001 at 21:32 UTC
|
Why can't you "afford" using a cookie for this? You're going to find things are going to be a little more difficult when you do it this way. I was also under the impression ASP used cookies for its session variable. | [reply] |
Re: Session management and PERL
by impossiblerobot (Deacon) on Dec 21, 2001 at 22:08 UTC
|
Java JSP/Servlet engines provide a way to pass session IDs without cookies using URL rewriting (ie. tacking the session information automatically to the end of every URL).
I haven't actually done this myself, but if you are using Apache and have administrative access, there are several Perl modules on CPAN that can use this same technique.
Impossible Robot | [reply] |
Re: Session management and PERL
by Juerd (Abbot) on Dec 21, 2001 at 23:54 UTC
|
Hi,
First of all, please excuse me for not answering the question.
My comment is about the use of the word "PERL". The language is called "Perl" with a capital P, the interpreter is called "perl". The only PERL in allcaps is Acme::Inline::PERL, which should not be taken serious :)
From Acme::Inline::PERL's documentation:
PERL is a programming language for writing CGI applications.
...
Unfortunately there is no documentation for PERL (believe me I've looked everywhere). Therefore, the best thing to do is to go straight to comp.lang.perl.misc and ask your questions there.
Many people make the mistake of calling Perl or perl PERL. Sure, some books have PERL in the title, but that doesn't make it right.
Good luck with solving your session-problems!
2;0 juerd@ouranos:~$ perl -e'undef christmas'
Segmentation fault
2;139 juerd@ouranos:~$
| [reply] [d/l] |