icon Posted April 13, 2006 Share Posted April 13, 2006 hii am having a bit of a problem with sessions, if i have the protected page has [a href=\"http://www.domain.com/web/protectedpage.php\" target=\"_blank\"]http://www.domain.com/web/protectedpage.php[/a] it goes [a href=\"http://www.domain.com/web/security/members/?sec=login\" target=\"_blank\"]http://www.domain.com/web/security/members/?sec=login[/a] if session username aint there,once logged in it show welcome username etc which is great.but ........if the prottected page is [a href=\"http://www.domain.com/support/members/\" target=\"_blank\"]http://www.domain.com/support/members/[/a] and it goes to [a href=\"http://go.domain.com/web/security/members/?sec=login\" target=\"_blank\"]http://go.domain.com/web/security/members/?sec=login[/a] once i submit the form it goes back to the index page but still say welcome guest instead of welcome username etc and when i access the protected page again to goes back to the login pageany ideas why this might be happeningthanks Quote Link to comment https://forums.phpfreaks.com/topic/7263-problem-with-sessions/ Share on other sites More sharing options...
ToonMariner Posted April 13, 2006 Share Posted April 13, 2006 Have you made sure you posted those url's correctly?The second scenario has you going to a subdomain (go.domain.com) if that is the case then perhaps the server will not allow session cookies to traverse domains/subdomains. Quote Link to comment https://forums.phpfreaks.com/topic/7263-problem-with-sessions/#findComment-26433 Share on other sites More sharing options...
icon Posted April 13, 2006 Author Share Posted April 13, 2006 [!--quoteo(post=364247:date=Apr 12 2006, 08:06 PM:name=ToonMariner)--][div class=\'quotetop\']QUOTE(ToonMariner @ Apr 12 2006, 08:06 PM) [snapback]364247[/snapback][/div][div class=\'quotemain\'][!--quotec--]Have you made sure you posted those url's correctly?The second scenario has you going to a subdomain (go.domain.com) if that is the case then perhaps the server will not allow session cookies to traverse domains/subdomains.[/quote]the url are posted correctly,is there any way of solving this problem Quote Link to comment https://forums.phpfreaks.com/topic/7263-problem-with-sessions/#findComment-26514 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.