Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6111969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:41:30+00:00 2026-05-23T14:41:30+00:00

I’m building a site wherein users can create accounts and message each other using

  • 0

I’m building a site wherein users can create accounts and message each other using the site’s messaging system (a basic emailing system). If User-A receives a message from another User-B, I want to automatically notify User-A via his/her email address on file. Furthermore, I’d like to save User-A from having to enter his/her login credentials to the website in order to access this message.

Is it a bad idea to email User-A a special link that automatically logs him/her on the website? For example: “Please click on http://www.domain.com/?message_id=1&hash=abc123” (I can use the has value automatically log User-A to his/her account and view the specific message).

The email will already contain the message that User-B sent. User-A will have to go to the site in order to reply.

I guess my assumption is that this link would be safe since it will be emailed directly to User-A, who should have his/her email secured. Furthermore, I could make the hash only work for a certain period of time or after the first click, etc.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T14:41:31+00:00Added an answer on May 23, 2026 at 2:41 pm

    Normal practice for this sort of thing is to have a one-time authorization page that a user is taken to the first time they click on one of these links. This authorization page requires the user to enter their full credentials (user name, password, etc), and asks them if they’re connecting from a trusted/permanent computer. If they answer yes, then it stores a cookie in their browser to let your app know upon future visits that the browser has already been verified as belonging to that user.

    Internally, you need to store that cookie’s ID and the user’s ID, so that you can verify on return visits that the cookie matches the user.

    You may also wish to throw in one additional back-and-forth, by having the registration process send another email to the user’s registered email address, with a magic token that has to be used to register their browser. This prevents a third party from stealing their email and guessing their password. Of course it doesn’t protect against an attacker who has live access to their mailbox.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
Does anyone know how can I replace this 2 symbol below from the string
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have a French site that I want to parse, but am running into
Seemingly simple, but I cannot find anything relevant on the web. What is the
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.