Jump to content

Recommended Posts

Ok,.. I am working on a Support Ticket type program. And I have come across a problem. There is an admin section where the "operators" can login and view open tickets and reply to them. Problem is they will get a link in an email to the ticket with the ticket number in url var.

 

What I dont want is to have an operator click the link only to have them login and lose the var(ticket id,..). Does that make sense? I want the link to log them in somehow. Not with it being a link via email I really have no way of knowing who that user is and if they really are that user. I think I could set the session var(username is set in a session var) with thier username (not sure how yet) but that seems very unsecure. Has anyone run into this before? If so,. what was your solution? Just a kick in the right direction is all Im looking for,.. Thanks!

Link to comment
https://forums.phpfreaks.com/topic/63043-login-via-email/
Share on other sites

I always find that logging in via email is very insecure.  You can do it by storing a unique variable in the address and associating it with the user in the database.  The problem is that you make the assumption that the email you send it to is the person who owns the account.  If you are at all worried about that, then it's not a good option.  There may be other security measures to take, but ultimately that's the concept.

 

Now, another option is that you could store that ticket number through the whole login process.  And then you could just redirect to the page after login.

 

Does that help?

Link to comment
https://forums.phpfreaks.com/topic/63043-login-via-email/#findComment-314029
Share on other sites

Yeah.  I am currently developing a site, and our designer just asked us if there was a way to keep them logged in for two weeks, so we just had this discussion.  There are ways to add more security on top of both options, but if you don't think it will deter the use of your system, why not just have them login every time, particularly if you are protecting sensitive information.

 

Another thing is you could store that unique string in a cookie and then when they visit again it logs them back in, and such.  It's the same concept as the email link.

Link to comment
https://forums.phpfreaks.com/topic/63043-login-via-email/#findComment-314052
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.