Gossamer Forum
Home : Products : Gossamer Mail : Discussion :

Invalid/Expired session.

Quote Reply
Invalid/Expired session.
I keep getting these errors when trying to login as a user.



CGI INPUT
======================================
page => home-nav.htm
sid => 0
t => default


CURRENT USER
======================================
template => default


ENVIRONMENT
======================================
DOCUMENT_ROOT => /usr/home/ppoll/ppoll-www
GATEWAY_INTERFACE => CGI/1.1
HTTP_ACCEPT => image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, */*
HTTP_ACCEPT_ENCODING => gzip, deflate
HTTP_ACCEPT_LANGUAGE => en-au
HTTP_CACHE_CONTROL => max-stale=0
HTTP_COOKIE => WebmailTest=1; dis_dgraph=yes; dis_prefs=yes
HTTP_HOST => picturepoll.com
HTTP_REFERER => http://picturepoll.com/cgi-bin/mail/user/login.cgi
HTTP_USER_AGENT => Mozilla/4.0 (compatible; MSIE 5.5; Windows 98; AtHomeI0107)
HTTP_X_FORWARDED_FOR => 203.164.33.109
PATH => /sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin:/root/bin
QUERY_STRING => sid=0&t=default&page=home-nav.htm
REMOTE_ADDR => 203.164.3.170
REMOTE_HOST => UNKNOWN
REMOTE_PORT => 20004
REQUEST_METHOD => GET
REQUEST_URI => /cgi-bin/mail/user/webmail.cgi?sid=0&t=default&page=home-nav.htm
SCRIPT_FILENAME => /usr/home/ppoll/ppoll-www/cgi-bin/mail/user/webmail.cgi
SCRIPT_NAME => /cgi-bin/mail/user/webmail.cgi
SERVER_ADDR => 64.23.60.184
SERVER_ADMIN => admin@picturepoll.com
SERVER_NAME => picturepoll.com
SERVER_PORT => 80
SERVER_PROTOCOL => HTTP/1.0
SERVER_SIGNATURE => <ADDRESS>Apache/1.3.14 Server at picturepoll.com Port 80</ADDRESS>

SERVER_SOFTWARE => Apache/1.3.14 (Unix) PHP/4.0.4pl1


STACK TRACE
======================================
(Webmail::generate_error_msg) called from (/usr/home/ppoll/ppoll-www/cgi-bin/mail/admin/Webmail.pm) line (1691)
(Webmail::usererr) called from (/usr/home/ppoll/ppoll-www/cgi-bin/mail/user/webmail.cgi) line (47)
(main::main) called from (/usr/home/ppoll/ppoll-www/cgi-bin/mail/user/webmail.cgi) line (30)


Quote Reply
Re: Invalid/Expired session. In reply to
I have the same problem and never got resolved.



Quote Reply
Re: Invalid/Expired session. In reply to
migeus i found a solution. you need to set the cookie to no in the login template in the javascript

here it is

<!--
function getCookie (myform) {
if (document.cookie.indexOf("WebmailTest") != -1) {
myform.cookie.value = "yes";
}
else {
myform.cookie.value = "no";
}
return true;
}

to this


<!--
function getCookie (myform) {
if (document.cookie.indexOf("WebmailTest") != -1) {
myform.cookie.value = "no";
}
else {
myform.cookie.value = "no";
}
return true;
}


Hope that helps you.

Quote Reply
Re: Invalid/Expired session. In reply to
Another thing to check: Gossamer Mail stores the database user name and password in six ".def" files in the admin/defs/ hierarchy of the cgi-bin directory. Sometimes changes in the database connection config don't get reflected in all of these (due to file permissions or other problems) effectively locking certain scripts/modules out of the database. The quick fix is to check all of the .def files manually after any database password change.