Click to See Complete Forum and Search --> : passing session variable from http to https


tkm
05-01-2008, 04:53 PM
Hello mates,
It would be really helpful if someone can provide me this very basic concept. I would want to pass session variable between http and https. Infact from http to https. So say I have a session variable $_SESSION['username']=test. My http link: http://site.com and I want to pass to https://site.com. Can anyone please inform me how to do it? Thank you.

tron00
05-01-2008, 11:09 PM
It shouldn't matter if you are using sessions in http or https as long as you are staying within the same domain. You can just call $_SESSION['username'] if it is set.

Horizon88
05-02-2008, 01:32 PM
As far as I know, tron's correct - http/https is fine, so long as you aren't passing between www and not-www.

dougal85
05-02-2008, 01:39 PM
same domain and same server too...

tkm
05-07-2008, 10:13 AM
same domain and same server too...
Thank you. Maybe I am doing something wrong as I am loosing the Session value while I am transferring from http->https. Let me debug more.