I saw Dan Decker’s comment on another thread about a known issue related to cookies and sessions. Has that been resolved in 2.4?
I manage a very large member site that is experiencing some cookie/login issues…
These are the symptoms that have been reported:
1. Some users (multiple browsers but mostly IE) claim they are getting logged out soon after they login. I can usually never reproduce the behavior when testing on my machine. Having the user clear cache often resolves the issue - which makes me think it’s a cookie issue.
2. Now just yesterday, the client was testing a new feature on the site where they logged in, took a survey on a remote site, then was redirected back to site where I am doing a check to see if the user is logged in. If the user is logged_out - we ask them to login first then retake the survey. If the user is logged in, we show them the thank-you page.
The problem is that the client confirmed they were logged in first, following the process, but was directed to survey/start-over template in the if logged_out conditional. And what’s weird is that the survey/start-over template was showing the user as logged in.
So it seems to me that it’s an issue with the {if logged_in} conditional not working properly.
{if logged_in}
{redirect="survey/thank-you"}
{/if}
{if logged_out}
{redirect="survey/start-over"}
{/if}Note that clearing cache did not solve problem #2.
These are my current settings…
* EE v2.3.1 - Build: date 20111017
* CP and User Sessions > Cookies Only (for both)
* Require IP Address and User Agent for Login > No
* Cookie domain > .example.com
* $config[‘cp_session_ttl’] “200000”;
* $config[‘user_session_ttl’] “200000”;
* Using Solspace User Module with email address set as username
This is my login form tag for problem #2 above…
{exp:member:login_form return="survey/start"}
<label>Email Address:</label>
<input type="text" name="username" value="" />
<label>Password</label>
<input type="password" name="password" value="" />
<button type="submit" name="submit">Login</button>
{/exp:member:login_form}