So whats the best solution? A redirect to an SSL page and a redirect
back after authentication?
There are probably ways around it, using for example a database as
intermediate store, but it's not "simple".
The browser handles "
http://www.yoursite.com" and
"
https://www.yoursite.com" as two separate sites. This means that the
session-cookie of one is *not* transfered to the other. As a result
those two parts can't share sessions.
A suggestion:
- login at the https part
- store that fact in the database, under a newly generated guid plus
expiry date
- redirect to the http part, using that guid as parameter
- read the credentials stored under the guid, test if it is not
expired.
- store the credentials in the local session and remove the db-record
Hans Kesting