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.
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.
As far as I know, tron's correct - http/https is fine, so long as you aren't passing between www and not-www.
same domain and same server too...
dougal85 wrote: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.