Roundcube Community Forum

 

keep me logged in

Started by jaredyeo, April 01, 2009, 04:47:14 AM

Previous topic - Next topic

jaredyeo

I've been searching for the past few hours on how to do this but with no result.

When I close my browser and head into my roundcube url, it asks me to re-login. Is there a way to bypass this? i.e. keep me logged in until I click 'log out'.

session killed when browser is closed?

Julius Caesar

Quote from: jaredyeo;18166session killed when browser is closed?

AFAIK this is standard behavior. This has to to with the PHP session variables. The only way you can keep your session alive is to use a multi-tab browser and never close the browser, but only the tab where the webmail is in. (And only if you have at least one tab open after closing that tab).
Julius Caesar

You can download the Groupvice4 theme here.
Sie können Groupvice4 hier he

jaredyeo

Quote from: Julius Caesar;18170AFAIK this is standard behavior. This has to to with the PHP session variables. The only way you can keep your session alive is to use a multi-tab browser and never close the browser, but only the tab where the webmail is in. (And only if you have at least one tab open after closing that tab).

Thanks. I'm sure I'm not the only one who finds this annoying, especially after being used to gmail for the past few years.. I'm pretty sure theres just a few lines or so to comment out to bypass this..

rosali

AFAIK Gmail authenticates by Cookie and not by Session as RoundCube does. This are not just a few lines. Wait for RoundCube 0.3. I'm sure it's easy to implement then by using the announced plugin API.
Regards,
Rosali

jaredyeo

Quote from: rosali;18173AFAIK Gmail authenticates by Cookie and not by Session as RoundCube does. This are not just a few lines. Wait for RoundCube 0.3. I'm sure it's easy to implement then by using the announced plugin API.

Thanks guys for clearing things up.

jmeander

Is that why the login field won't 'remember' the username between sessions? My users are going to be moved from an archaic Squirrelmail install to roundcube, and while the password is never stored in our Squirrelmail config (and I don't ever want it to be as my users are teachers and their students would have a field day with that), the username is remembered and can be auto-completed by the browser. Any way to accomplish that with config settings in RoundCube?

Julius Caesar

Quote from: jmeander;18662Is that why the login field won't 'remember' the username between sessions?
No that has to do with the option  autocomplete="off" in the file ./templates/login.html.

Change the "off" to "on" and the username and password will be remembered.
Julius Caesar

You can download the Groupvice4 theme here.
Sie können Groupvice4 hier he

jmeander

Gratias, JC. Had that off without even checking :rolleyes: as I'd assumed that it would remember the password as well as the username. Tried and it stores only the username for me (so far) so that's great. It won't EVER store the password, right?

Julius Caesar

Quote from: jmeander;18670Gratias, JC. Had that off without even checking :rolleyes: as I'd assumed that it would remember the password as well as the username. Tried and it stores only the username for me (so far) so that's great. It won't EVER store the password, right?
My passwords are remembered, but that might be a browser setting. I have to check that this weekend.
Julius Caesar

You can download the Groupvice4 theme here.
Sie können Groupvice4 hier he

jmeander

Thanks, that'd be great. I really have to make sure my users' passwords are not stored as all the computers are easily accessible by students at different times.

~J