Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Remember me not working

web-app

We use v 2.0.3 and have noticed that a cookie is created when selecting the "Remember me" check box.

When the use logs out the cookie is deleted.

In previous versions we were given the option to keep or delete the cookie but now we don't even get that.

If the user closes the browser without logging out then the remember me function works as the cookie exists.

Is this the intended behaviour. cant see any documentation around this change.

Pete

pete
· 1
pete
Replies (5)
helpful
0
not helpful

Yes, this is the intended behaviour.

This is the way most sites work.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

[quote user="SaarCohen"]

Yes, this is the intended behaviour.

This is the way most sites work.

[/quote]
I keep having issues with this. I use 2.0.3 on win2k3 server and xp as client and firefox as the browser. The cookies are set, I click remember me, and it seems to remember me for some time but when I open the site the next day, when the server has been shut down and rebooted, I have to login again... This IMHO isn't the intention of remember me, which should remember me also when I come back the next day.

I do get these in the systemlog:
SESSION miss detected - key: ISSUE_COMP

perhaps it's related I'm not sure.


FransBouma
· 1
FransBouma
helpful
0
not helpful

We can not seem to replicate this. Can you try on our site: http://gemini.countersoft.com

 


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

[quote user="SaarCohen"]

We can not seem to replicate this. Can you try on our site: http://gemini.countersoft.com[/quote]

The thing is: if I close the browser and reconnect to my own gemini install, it works as well. Though when the server has been rebooted it doesn't. I'll see if I can reproduce it with restarting the w3svc here.

(edit). Ok. I could reproduce it when I moved gemini to another application pool (from the default to its own). After that I couldn't reproduce it when the server isn't rebooted. It happens when ASP.NET decides a recompile of the site has to occur, which every time when I visit the site for the first time after a reboot. then I have to re-login.


FransBouma
· 1
FransBouma
helpful
0
not helpful

I run Gemini on .NET 2.0, not .NET 1.1. This is the root cause of the problem. I ran into the exact same issue with another application which I migrated from .NET 1.1 to .NET 2.0, and where persistent cookies all of a sudden didn't work anymore: the expiration date for the formsauthentication cookie was the same day, 30 minutes from login time.

It appears that under .NET 1.1, when you called FormsAuthentication.RedirectFromLoginPage(someName, true); it did create a persistent cookie which was alive the next day. However on .NET 2.0 this isn't the case, the expiration date of the cookie follows the timeout set for the forms authentication in the web.config.

So to get really persistent cookies with Gemini on .NET 2.0, you've to set the timeout attribute on the forms tag in the web.config to a high value, like 300000 for a couple of months.

So not a bug in Gemini, more a behavior change in .NET 2.0 :)


FransBouma
· 1
FransBouma