Roundcube Community Forum

 

Passing Variables with each link

Started by frankov, September 04, 2008, 01:20:11 PM

Previous topic - Next topic

frankov

Hi,

I'm trying to find a way to remember the username and password with each possible link.

The reason I want this, is that I want to automatically re-enter the login information after a Log-Off or if the session expires.

So far, I've followed the instructions to be able to auto-fill the username and password from the login page, but I would like to keep the $_GET['_user'] and $_GET['_pass'] throughout the sections.

Is it possible to pass other variables than the ones that are sent (like the variables "_task" and "_mbox") ?

Thanks !

rosali

#1
Do you really want to expose usernames and passwords that way? Do you want to see an URL like ...

http://url_to_rc/?_task=mail&_action=logout&[email protected]&_pass=my_top_secret_password

... in the browser history?

Never append such things to an URL!
Regards,
Rosali

frankov

I know it isn't very secure, but it's going to be used inside a iFrame, and the password is the same for all mailboxes on the system. It is not going to be used on the Internet, just on an intranet.

I really just want the email address and password to be filled when the user logs off or his session expires.

Maybe I could pass the variable in a $_POST, which would be more secure ?

rosali

Do you have basic web coding skills?

You could store the user/pass (perhaps encrypted) in a cookie ...
Regards,
Rosali

guido

I have the situation where I just want the users to be linked to the roundcube login with their emailadres prefilled. I could make a link like http://www.sbs7.eu/roundcube/[email protected] but this didn't work.

Is it possible to achive this in roundcube?

rosali

You need to write a plugin for that. AFAIK it is not possible by default.
Regards,
Rosali