Jump to content

[SOLVED] something wierd about sessions.


spdwrench

Recommended Posts

ok my free dating site uses sessions

 

the thing is if I go from the site into the forum it automaticly logs me in no problem

 

if I am on http://abmatch.com

 

but if I click a link that directs me to http://www.abmatch.com the session is lost because of the www and vise versa is there a wait to make the session universal for both so if I jump back and forth it wont loose the session?

 

thanks for any ideas

 

Paul

Link to comment
https://forums.phpfreaks.com/topic/69946-solved-something-wierd-about-sessions/
Share on other sites

it definatly is the www

 

I just tested it again

 

if I log in with www.site when I click on a forum link to a members profile it takes me back to the site with www and I can email the person

 

if I log in without www the forum link links to the profile with www and the session is lost...

 

will this autostart fix this?

 

I will turn in on.. but I wonder why it is not already on? are there security issues?  what is the difference with the autostart if you could please.

 

Paul

I figured out a way to do this

 

instead of the profile link going back to http://www.site.com/profile123\

 

 

I just need to modify php BB2 so that the website link does not require http:

 

then all I do is make the link like this ../profile123

 

and the session good

 

thanks for the suggestion anyway guys

 

Paul

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.