ViralStef Posted September 12, 2007 Share Posted September 12, 2007 Hi there I have a script where you can login, and, if successful, you are redirected by javascript to your original page. But, when cookies are disabled, you have to be redirected to the URL, containing the PHPSESSID. It doesn't...The url contains all the get variables (my php script collects them and put them in an argument of the javascript function), except for the PHPSESSID-variable... It's maybe more an JavaScript issue, I don't know what is the cause of this behavior...!? Thx Quote Link to comment https://forums.phpfreaks.com/topic/68994-javascript-redirect-means-loss-of-sid/ Share on other sites More sharing options...
xyn Posted September 12, 2007 Share Posted September 12, 2007 if cookies are disabled; i dont think _SESSIONS work. also i think _SERVER['SESSION_ID']; is a way of getting it if its hidden. - www.php.net/SESSIONS - or create a page called info.php and enter: <?=phpinfo();?> Quote Link to comment https://forums.phpfreaks.com/topic/68994-javascript-redirect-means-loss-of-sid/#findComment-346802 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.