Welcome Guest, Not a member yet? Register   Sign In
Session Issues switching from HTTPS to HTTP
#1

[eluser]Unknown[/eluser]
Hi everyone,

I woud like to secure the authentification on a website with HTTPS so on the login page, I use HTTPS and then, once the user has been authentified, I redirect him to the web site in HTTP.

The problem is that the session is lost when switching back to HTTP.

Does someone have some tips in order to create a session for both HTTP and HTTPS ? Or is it possible to re-launch the session when I switch to HTTP ?

I have also same kind of session's issues with the upload of files.
I use a flash uploader (uploadify). Obviously when the flash uploader send the file, it doesn't send the cookie with it so that the session can not start.
How can I get my session information in this case.

Thanks a lot !
#2

[eluser]toopay[/eluser]
If you enabled "use database" feature in CI session configuration, then you can fetch the session from database and get an unserialized data of your custom session data. In that way, i think you can use that to resolve both of your issues.




Theme © iAndrew 2016 - Forum software by © MyBB