spdwrench Posted September 19, 2007 Share Posted September 19, 2007 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 Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted September 19, 2007 Share Posted September 19, 2007 the www shouldn't make a difference. there would likely be a difference between http and https, however. Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted September 19, 2007 Share Posted September 19, 2007 If the whole site (or 95%) of it uses session just turn on auto start for sessions and save your self a headache Quote Link to comment Share on other sites More sharing options...
spdwrench Posted September 19, 2007 Author Share Posted September 19, 2007 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 Quote Link to comment Share on other sites More sharing options...
spdwrench Posted September 19, 2007 Author Share Posted September 19, 2007 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 Quote Link to comment Share on other sites More sharing options...
Jessica Posted September 19, 2007 Share Posted September 19, 2007 sessions do not last between subdomains, so it is the www. You can either use a BASE_URL constant with a URL or a relative path, so they never leave the subdomain. Quote Link to comment 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.