views:

33

answers:

1

I have a user logged in. How can i extend/renew expiry date of session received from the request ? Thanks in advance!

A: 

setting SESSION_COOKIE_AGE is designed for that purpose I believe. After login cookie is set automatically for this period.

You can also save session cookie on every request by using SESSION_SAVE_EVERY_REQUEST setting.

Lukasz Dziedzia
yeah.. but if user's session is about to expire and I want to extend his session's expiry date further, then is there a way ?
Rohit
got it :) request.session.set_expiry() worked !
Rohit
OK, now I got it:) good you solved this.
Lukasz Dziedzia