Welcome to Geeklog, Anonymous Thursday, August 11 2022 @ 01:28 pm EDT

Geeklog Forums

Session timing out too Quickly (after migration to 1.5.0)


Status: offline

Chase

Forum User
Regular Poster
Registered: 03/14/08
Posts: 110
Location:Karachi, Pakistan
guys let me know what i need to do here.

the permant and session time are both se to 8hours.

still times while i am writing the session and soon as i hit the submit button it goes to the main page. as anonyumous user.



--
http://TazaKino.com - Pakistani News
Where YOU report the news
 Quote

Status: offline

mst3kroqs

Forum User
Regular Poster
Registered: 10/18/05
Posts: 78
Location:Cary, NC USA
Quote by: Chase

guys let me know what i need to do here.

the permant and session time are both se to 8hours.

still times while i am writing the session and soon as i hit the submit button it goes to the main page. as anonyumous user.


In Configuration->Miscellaneous, set 'Cookie Domain' to the URL of your site, without the leading http://, eg. 'www.mysite.com'. FYI - in 1.4.1, this is the 'cookiedomain' variable in config.php.

Dirk -

This might be a candidate for a FAQ item.

-m
 Quote

Status: offline

Chase

Forum User
Regular Poster
Registered: 03/14/08
Posts: 110
Location:Karachi, Pakistan
does it matter if i just use domain.com as oppose to www.domain.com


--
http://TazaKino.com - Pakistani News
Where YOU report the news
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
If "Cookie Domain" is empty, Geeklog will set it automatically (internally). So I don't think that's the problem.

According to the original cookie specification, the Cookie Domain needs to contain at least 2 dots, so for www.example.com, it should be .example.com

bye, Dirk
 Quote

Status: offline

Chase

Forum User
Regular Poster
Registered: 03/14/08
Posts: 110
Location:Karachi, Pakistan
good point,

this means that the site url must also be www.domain.com

otherise it wont work? Am i correct?

Chase

--
http://TazaKino.com - Pakistani News
Where YOU report the news
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
'www.example.com' would create cookies that are only valid for that domain. They won't work when you call up your site as http://example.com

Using '.example.com' would solve that, but the cookies created like that would also be valid for, say, "blah.example.com".

Geeklog uses '.example.com' when you leave the "Cookie Domain" setting empty.

bye, Dirk
 Quote

Status: offline

mst3kroqs

Forum User
Regular Poster
Registered: 10/18/05
Posts: 78
Location:Cary, NC USA
Quote by: Dirk

If "Cookie Domain" is empty, Geeklog will set it automatically (internally). So I don't think that's the problem.

According to the original cookie specification, the Cookie Domain needs to contain at least 2 dots, so for www.example.com, it should be .example.com

bye, Dirk

If it is not the problem, then I'm wondering why this approach tends to fix the problem every time. Therefore, while it may not be the problem, it appears to be the solution. Also - you're right, this is how I have it set on my site, apologies for the wrong detail in the suggestion.
 Quote

Status: offline

Chase

Forum User
Regular Poster
Registered: 03/14/08
Posts: 110
Location:Karachi, Pakistan
problem still exisits

all you need to do is login. click on contribute or post new link

type something and then wait for 10 minutes.

after that when you press submit. It will take you to the index page.
You will not get the message saying story saved. And you will
find yourself logged out.

right now my cookie domain =www.tazakino.com
and my site url=www.tazakino.com
cookieip=false
cookie path=/

what else can i provide you to debug?

This causing major issues at my end for my users.
--
http://TazaKino.com - Pakistani News
Where YOU report the news
 Quote

Status: offline

Dirk

Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
What do you have for the cookie timeouts? Permanent Timeout and Session Timeout.

bye, Dirk
 Quote

Status: offline

Chase

Forum User
Regular Poster
Registered: 03/14/08
Posts: 110
Location:Karachi, Pakistan
permanet :28800
session:14400
--
http://TazaKino.com - Pakistani News
Where YOU report the news
 Quote

Status: offline

Chase

Forum User
Regular Poster
Registered: 03/14/08
Posts: 110
Location:Karachi, Pakistan
ok did some more testing

bascially it is the general system behaviour
if a user logs and does noting for say round 5-10 mins
and clicks on any link he get thrown out.
--
http://TazaKino.com - Pakistani News
Where YOU report the news
 Quote

Status: offline

Chase

Forum User
Regular Poster
Registered: 03/14/08
Posts: 110
Location:Karachi, Pakistan

problem solved
http://www.geeklog.net/forum/viewtopic.php?showtopic=83565
--
http://TazaKino.com - Pakistani News
Where YOU report the news
 Quote

All times are EDT. The time is now 01:28 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content