Session lost if URL without sid

Do not post support requests, bug reports or feature requests. Discuss phpBB here. Non-phpBB related discussion goes in General Discussion!
Ideas Centre
Post Reply
harriswt
Registered User
Posts: 12
Joined: Sat Dec 29, 2007 2:15 pm

Session lost if URL without sid

Post by harriswt »

Hope someone can help me to retain the session whenever I click on URL without the complete session id.

As an example:

1) This is a complete URL and when I logon and click at the URL, my logon status is maintained.
http://localhost/phpbb3/viewtopic.php?f ... 08d87534ce

2)However when I remove the sid part, I can jump into the topic but my session disappear.
http://localhost/phpbb3/viewtopic.php?f=2&t=480

This issue does not happen in phpBB2.
How to make the registered user remained logon on step 2?

thanks.
User avatar
Marshalrusty
Project Manager
Project Manager
Posts: 29278
Joined: Mon Nov 22, 2004 10:45 pm
Location: New York City
Name: Yuriy Rusko
Contact:

Re: Session lost if URL without sid

Post by Marshalrusty »

Is this only happening for you locally, or on a live server as well? I had the same problem on my local test installation and fixed it by creating a fake domain in my hosts file (mysite.com), which points to the local site. This is only a problem locally (at least for me).
Have comments/praise/complaints/suggestions? Please feel free to PM me.

Need private help? Hire me for all your phpBB and web development needs
harriswt
Registered User
Posts: 12
Joined: Sat Dec 29, 2007 2:15 pm

Re: Session lost if URL without sid

Post by harriswt »

Marshalrusty wrote:Is this only happening for you locally, or on a live server as well? I had the same problem on my local test installation and fixed it by creating a fake domain in my hosts file (mysite.com), which points to the local site. This is only a problem locally (at least for me).

This happens for me on live server.
harriswt
Registered User
Posts: 12
Joined: Sat Dec 29, 2007 2:15 pm

Re: Session lost if URL without sid

Post by harriswt »

anyone else can help me to fix this session lost issue?
dangersk
Registered User
Posts: 3
Joined: Sun Jan 13, 2008 11:42 am

Re: Session lost if URL without sid

Post by dangersk »

I have the same problem
dangersk
Registered User
Posts: 3
Joined: Sun Jan 13, 2008 11:42 am

Re: Session lost if URL without sid

Post by dangersk »

Any idea how we can fix it, it's pretty annoying for me and more importantly, for our users as well.
harriswt
Registered User
Posts: 12
Joined: Sat Dec 29, 2007 2:15 pm

Re: Session lost if URL without sid

Post by harriswt »

dangersk wrote:Any idea how we can fix it, it's pretty annoying for me and more importantly, for our users as well.
It seems this phpBB forum is inactive.
Where can we post bugs?
ckwalsh
Former Team Member
Posts: 1837
Joined: Wed Mar 15, 2006 1:50 am
Location: Seattle, USA
Name: Cullen Walsh
Contact:

Re: Session lost if URL without sid

Post by ckwalsh »

No, you posted in the wrong forum, that's why you are not getting a response.

You will want to check that all your cookie settings are correct and that the cookie name only consits of numbers and letters (starting with a letter).
Where to post what | Forum Rules | The Dos and Don'ts of General Discussion
In Seattle and want to meet, chat, or have a coffee? Drop me a PM.
harriswt
Registered User
Posts: 12
Joined: Sat Dec 29, 2007 2:15 pm

Re: Session lost if URL without sid

Post by harriswt »

Brainy wrote:No, you posted in the wrong forum, that's why you are not getting a response.

You will want to check that all your cookie settings are correct and that the cookie name only consits of numbers and letters (starting with a letter).
problem solved.
thanks for the hint.

in the cookie settings -> cookie domain
I entered different hostname as the forum host. After I've updated to the correct host everything looks perfect :D


thanks a lot.
dangersk
Registered User
Posts: 3
Joined: Sun Jan 13, 2008 11:42 am

Re: Session lost if URL without sid

Post by dangersk »

I have fixed it too...it didn't work because I have had enabled Cookie secure and actually haven't used secure connection.

Thanks.
Post Reply

Return to “phpBB Discussion”