Jump to content


Photo

problem with sessions


  • Please log in to reply
2 replies to this topic

#1 icon

icon
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 13 April 2006 - 12:20 AM

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

#2 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 13 April 2006 - 01:06 AM

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.
follow me on twitter @PHPsycho

#3 icon

icon
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 13 April 2006 - 08:51 AM

[!--quoteo(post=364247:date=Apr 12 2006, 08:06 PM:name=ToonMariner)--][div class=\'quotetop\']QUOTE(ToonMariner @ Apr 12 2006, 08:06 PM) View Post[/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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users