Autologin?

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
unified
Posts: 2
Joined: Thu Oct 06, 2011 7:47 pm

Autologin?

Post by unified »

What to I have to do to auto login to Hesk?

I have added Hesk into a subdirectory of my exisiting ASP.Net site, and I am trying to avoid having users to have to login again when they have already logged into the ASP.Net application.

I saw that the admin_main.php looks for $_POST['user'] and $_POST['pass'], so I tried sending:


http://localhost/hesk23/admin/index.php ... edpassword


However, this still causes the login form to display.

I realize that sending user information in this manner is not safe, but I am just exploring this method and right now our information is not sensitive enough to worry about security at this time.
Klemen
Site Admin
Posts: 10145
Joined: Fri Feb 11, 2005 4:04 pm

Re: Autologin?

Post by Klemen »

You will need to send user and password using POST and not GET method (by adding them to the query you are sending them as GET).

Also, you will need to send value 'a' set to 'do_login' (this one can be sent using GET).

The exact code to use would be up to you as it's out of the scope of my free support, but the above guidelines should turn you into the correct direction.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
unified
Posts: 2
Joined: Thu Oct 06, 2011 7:47 pm

Re: Autologin?

Post by unified »

Thanks, it worked. It also gave me a wonderful opportunity to brush up on the POST and GET methods. :D
Post Reply