Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Session timeout non JS version. #294

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jinnashravan
Copy link
Contributor

  1. After 20 minutes cookie session timesout and shows a session-ended page.

1. After 20 minutes cookie session timesout and shows a session-ended page.
Copy link
Contributor

@maxf maxf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please write a more detailed commit message, including why we're doing this.

Also, have you thought about any way to write tests for this?



class SessionEndedForm(forms.Form):
"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need a form here. Just a page with a link should do.

@@ -13,6 +13,21 @@

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use consistent indentation across the file? I think other templates use 2 characters.



{% block content %}
<div class="govuk-grid-row">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indentation should be 2 chars

@@ -259,8 +259,8 @@
CSRF_FAILURE_VIEW = "request_a_govuk_domain.request.views.csrf_failure_view"
SESSION_COOKIE_SECURE = True

# Set session (end-user or admin) to expire in 24 hours
SESSION_COOKIE_AGE = 24 * 60 * 60
# Set session end-user to expire in 20 minutes
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't apply to admins? Originally the session duration was limited for admins

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants