Ive been developing an auth script which uses PHP Session vars to verify that the user is logged in.
It works fine as long as it's either SSL or non-SSL throughout, but I know that sessions can be hi-jacked and I've recently come across a major problem which makes using Sessions possibly totally impractal.
To put it simply:
User logs in on an SSL encrypted gateway page.
User is redirected to non-SSL admin area (sessions are lost at this point due to URL being different)
User is redirected back to the gateway page because the sessions don't exist.
The user needs to be able to surf a protected area without SSL as this is a shared certificate and speed is poor. I could simply pass the session data and start a new session for the non-SSL space, but this would be leave an obvious weakpoint in the whole system.
Can anyone suggest an alternative to using sessions (and ideally not cookies either) which will allow my users to remain logged in throughout both areas?
thanks in advance, roki