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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T12:00:29+00:00 2026-06-10T12:00:29+00:00

Let us have some simple page that allows logged users to edit articles. Imagine

  • 0

Let us have some simple page that allows logged users to edit articles. Imagine following situation:

User Bob is logged into the system and is editing long article. As it takes really long to edit such article, his authentication becomes expired. After that, he clicks submit button and because of expired authentication, he is redirected to login page.

It is really desirable to finish the action (saving article) after his successful login. So we shall restore the request that was done while Bob was unauthenticated and repeat it now, after successful login. How could this be done with pyramids?

  • 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-10T12:00:31+00:00Added an answer on June 10, 2026 at 12:00 pm

    there are three parts you need;

    1. The page that handles the authenticated form submission should check to see if the request is properly authenticated, perform the action, but if it isn’t, store all of the data in a server side session and redirect the use to a login page.
    2. The login page should look for a “was trying to do X” sort of query param (eg, ...?fromurl=/post/a/comment. After the user successfully logs in, the login page should redirect the user to that page instead of the site’s front page.
    3. The url the user was redirected to should be the same form they used to originally fill out the unauthenticated request. In this case, though, the server should recognize that there are field values stored in the server side session for this user; and so it should populate all of the form fields with those values. The user could then hit submit immediately and complete the post. This could work in a similar way that fields are repopulated when a request contains some invalid form values.

    It’s important that step 3 should not perform the post directly; The original data and request came from a user who was not authenticated.

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

Sidebar

Related Questions

I have some simple JavaScript that determines where a click happens within a browser
I have a form that allows a user to add an unlimited number of
On my home page, I want a simple webpart that allow users to quickly
Let's imagine that we have blog with category A . Category A is currently
I have a complicated form with some inputs and textareas that allow the user
Simple example: I want to have some items on a page (like divs or
So I have a page for editing posts. Let's say the user goes to
So I'm writing a simple page that I want to be able to slide
I have a query page with a huge form that is filled out by
I have a web app on GAE written in Go that performs some calculations

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.