graff has asked for the wisdom of the Perl Monks concerning the following question:
A typical pattern of user behavior here is that you go to a url (a .jsp page) which is protected by the user-authentication setup, and that jsp page checks for your HttpSession to see if you're logged in; if not, you are redirected to a login page, and on successful login you get redirected back to the original url you wanted.
I want to write perl/CGI apps that can use the existing authentication, and I'm wondering if there is some way (via module or ad-hoc coding) to access the HttpSession data.
Presumably, I could impose on our java guru/maintainer to supply some other method or resource via java/jsp, to write a cookie for the user as part of the login process; then my CGI script could just look for that cookie (and redirect to the standard login page if it's not there, and hopefully get redirected back once the user logs in).
But when I asked the java guru, who knows as much about perl/CGI as I know about java (i.e. not enough), the first thing he suggested was: "well, just get your cgi script to read the HttpSession data..." (esp. things called "attributes" in that object). Well, I think that would be a great way to proceed, if in fact there is a way to do that.
Does anybody know if there is a way to do that?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI for (or against) HttpSession?
by Joost (Canon) on Mar 30, 2005 at 23:46 UTC | |
by graff (Chancellor) on Mar 30, 2005 at 23:59 UTC | |
by Joost (Canon) on Mar 31, 2005 at 08:49 UTC | |
|
Re: CGI for (or against) HttpSession?
by crashtest (Curate) on Mar 31, 2005 at 02:02 UTC | |
by graff (Chancellor) on Mar 31, 2005 at 03:06 UTC | |
|
Re: CGI for (or against) HttpSession?
by PodMaster (Abbot) on Mar 31, 2005 at 05:56 UTC |