Jump to content

problem with sessions


icon

Recommended Posts

hi


i 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 page

any ideas why this might be happening

thanks
Link to comment
https://forums.phpfreaks.com/topic/7263-problem-with-sessions/
Share on other sites

[!--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
Link to comment
https://forums.phpfreaks.com/topic/7263-problem-with-sessions/#findComment-26514
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.