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

  • SEARCH
  • Home
  • 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 291421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T06:05:15+00:00 2026-05-12T06:05:15+00:00

I was looking at a schema and trying to figure out what this table

  • 0

I was looking at a schema and trying to figure out what this table could be used for:

CREATE TABLE "single_sign_ons" 
"token" VARCHAR(64) NOT NULL, 
"ip" VARCHAR(32) NOT NULL, 
"expired_at" DATETIME NOT NULL, 
"one_time" VARCHAR(64), 
"created_at" DATETIME, 
"updated_at" DATETIME, 
"user_id" INTEGER, 
PRIMARY KEY("token"));

What is “single sign on” and why did the author of this table include these columns for this purpose?

  • 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-12T06:05:15+00:00Added an answer on May 12, 2026 at 6:05 am

    It’s a holder for a user’s sign-on session. I believe that the table would be used when a user has signed in to verify that their session is still active, and allow them to access diverse servers/sites without logging in a second time.

    I’m assuming that at first login, the user’s session would be known to be new, so that the user would be queried for credentials. Then a row is entered in this table withe user’s id, ip address, creation date, and a token. This token would then be attached to the user’s session and used in subsequent logins.

    Other processes would then recieve the token as part of the communication and check this table to be sure that the session is still valid. Each time the session is checked, the update field would be changed, so that the user is known to be active.

    Still more logic would periodically check the table and expire any session rows that haven’t been updated recently enough. Whatever “enough” is for this system. Then subsquent access requests with the token will register the expiration, query for credentials and establish a new row with a new token.

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

Sidebar

Related Questions

Looking over the magento 1.5 schema I cannot seem to figure out how a
I'm trying to figure out how best to query against a schema that consists
I have been doing a lot of research trying to figure this out, but
I'm looking to create an SDL Tridion schema with a list of repeatable links
As in subject... is there a way of looking at an empty table schema
I've been trying to figure out how to check the syntax of an XML
I'm not sure if I am approaching this the right way; looking for some
Hi I am trying to learn Linq, so I am not sure if this
Using SQL2008, I'm trying to figure out an efficient query to find a row
I'm trying out SharpArchitecture and want to have FluentNHibernate generate my database schema for

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.