Perobl has asked for the wisdom of the Perl Monks concerning the following question:
Howdy Monks.
I have been using CGI::Session to maintain state awareness in a website I've been developing. It works great.
To date, I have been allowing a limited number of users to log into the system without a secure connection. I have now set up SSL, and it was my intention to use it at logon only. I wish to eliminate the vulnerability of someone potentially sniffing out PW information on its way to the server.
Upon sending this sensitive information to the server, the user is authenticated via a CGI. This same CGI also invokes a session object for the user. As is customary, the SID follows the user thru the site. Once logged in, the SSL connection is dropped.
I know that some may take issue with this decision. We've taken this approach because we will be sharing large CAD files via this system using a viewing tool called "eDrawings". Quite simply, we want to serve these large files as quickly as possible (via a less secure HTTP connection). We are limiting the lifespan of the session object, and feel (all things considered) this is a reasonable approach.
The problem I have occurs immediately after I transition the user away from the SSL connection. That is, post login I send the user to a CGI via a HTTP connection. The session object has already been invoked as part of the logon process. Unfortunately, the session object is no longer recognized. I'm unclear on what is happening. I'm guessing it has something to do with the session object being invoked via the SSL connection? Is this information also saved in the session object?
Can someone help me to better understand this process? Thank you!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI::Session Question
by Anonymous Monk on Mar 23, 2011 at 00:01 UTC | |
|
Re: CGI::Session Question
by locked_user sundialsvc4 (Abbot) on Mar 22, 2011 at 21:56 UTC | |
by Perobl (Beadle) on Mar 23, 2011 at 14:06 UTC | |
by wfsp (Abbot) on Mar 23, 2011 at 15:54 UTC | |
by Perobl (Beadle) on Mar 23, 2011 at 17:12 UTC |