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 8753339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:24:22+00:00 2026-06-13T13:24:22+00:00

I use a GO server (golang.org), which does have good support for encryption and

  • 0

I use a GO server (golang.org), which does have good support for encryption and third party package which provides basic cookie based session handling. I am looking for guidelines on generating tokens, and good practice to store, invalidate etc. My application need custom user management. Can one use Oauth in an offline setting, or any better way?

  • 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-06-13T13:24:23+00:00Added an answer on June 13, 2026 at 1:24 pm

    Generally, session cookies should be:

    • opaque. You should not be passing any information hidden in the cookie. It is merely an identifier.
    • unguessable. You wouldn’t want people to be able to guess other people’s session tokens and hijack them.
    • collisions resistant. If you have thousands of users on your site all at the same time, you need reasonably large tokens so two users don’t end up with the same token.
    • stored safely. Save your session information somewhere web browsers (and other public users) have no access to them. Usually this means saving them on disk outside of the server’s document tree, or putting them into a database.
    • deleted close to expiration. You don’t want to keep session data forever. Once in a while, you need to go through the session data and delete everything that has expired.

    I’m not sure where OAuth comes into this, since that is an authentication system and you’re asking about session management. (Although I realize the two can be related.)

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

Sidebar

Related Questions

I have a c# socket based server which serves TCP clients. I use telnet
I have the following in myserver/index.js (which I run with node): server.configure(function() { server.use(express.methodOverride());
I use SQL Server 2008 R2 and have a table that I want no
I use SQL Server 2005. I have a simple logging table that my web
I use SQL Server 2008 and have a table with 5 char typed columns.
I have been trying to determine which combination of packages to use for a
So say you have some navigation, and you don't/can't use server side code to
I have been trying to use Server Side Includes on my website to save
If you have two applications residing on the same server, can you use Server.Transfer
When I use Server.Transfer the browser keeps the Previous Page on the URL bar.

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.