Author Topic: Passing Variables with each link  (Read 4671 times)

Offline frankov

  • Newbie
  • *
  • Posts: 2
Passing Variables with each link
« on: September 04, 2008, 01:20:11 PM »
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 !

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Passing Variables with each link
« Reply #1 on: September 04, 2008, 03:35:37 PM »
Do you really want to expose usernames and passwords that way? Do you want to see an URL like ...

Code: [Select]
http://url_to_rc/?_task=mail&_action=logout&_user=jd@me.com&_pass=my_top_secret_password

... in the browser history?

Never append such things to an URL!
« Last Edit: September 04, 2008, 03:41:53 PM by rosali »
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline frankov

  • Newbie
  • *
  • Posts: 2
Passing Variables with each link
« Reply #2 on: September 04, 2008, 03:46:05 PM »
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 ?

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Passing Variables with each link
« Reply #3 on: September 04, 2008, 03:51:24 PM »
Do you have basic web coding skills?

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

Offline guido

  • Newbie
  • *
  • Posts: 1
Just the emailadres
« Reply #4 on: October 23, 2009, 08:31:08 AM »
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/?_task=mail&_action=login&_user=email@userdomain.com but this didn't work.

Is it possible to achive this in roundcube?

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Passing Variables with each link
« Reply #5 on: October 24, 2009, 01:35:23 AM »
You need to write a plugin for that. AFAIK it is not possible by default.
Regards,
Rosali
__________________
MyRoundcube Project (commercial)