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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:37:15+00:00 2026-06-13T14:37:15+00:00

I have a website with multiple pages. Each page has a Save as Draft

  • 0

I have a website with multiple pages. Each page has a “Save as Draft” method that will save the users progress. I have a session timeout of 40 minutes, and I was wondering how I would make it so that whenever the session is expired, the page automatically calls “Save as Draft” (so it’s not lost)

How would I start on doing something like this?

  • 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-13T14:37:16+00:00Added an answer on June 13, 2026 at 2:37 pm

    You can’t: the session expires server side and cannot send a message to the browser (it doesn’t even know whether the user still sees the page or has closed the browser).

    You could set a client-side timeout to save the page (as draft) to the server, but this has the effect of refreshing the session! So maybe just do an automatic “save as draft” every 5 – 10 minutes, thereby keeping your session (plus a draft copy of the work done).

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

Sidebar

Related Questions

I have a website that is 1-page and has multiple sections, each containing a
I an writing a website that will have multiple skins. Each skin has its
I have a website that contains many different pages of products and each page
I have a set of data in a website table that has multiple pages
I have a website with multiple pages, each of them with custom event handlers
If we have a website with multiple images and videos, I've read that it's
I have a multiple language website, that uses subdirectories from the root ('/en' for
I have a WordPress website that needs to have its articles in multiple languages.
I have multiple themes on my website and users can just switch between multiple
I have a solution which has multiple output projects (a website, and admin tool,

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.