Forum Discussion
SSL session and cookies
Our client is looking for a logical client log out functionality. In effect, the client should always be required to provide his/her credentials (CAC certificate) after logging out. The cookies cache by the client are preventing new sessions. Since we cannot delete the clients cookies in their browsers, could you provide information or code to terminate a client SSL connection/session?
6 Replies
- santosh_81454
Nimbostratus
Are you looking for idle time logout. If yes, login to the LTM as Admin and scroll to System -> Preferences -> Idle time before automatic logout. - nitass
Employee
Since we cannot delete the clients cookies in their browsersis setting cookie expire in irule helpful? - Mohamed_Lrhazi
Altocumulus
we cannot delete the clients cookies in their browsers - tmherron_91852
Nimbostratus
Our client requires a "logical logout" which to them means that the user must be forced to produce and select his credentials (Certificate). Session cookies do not time out and deleting the cookie in the http request does not force the client user to produce and select is certificate and ending the SSL session does not delete the cookie from the users browser. I am wondering if I could use irules inject javascript to call
"ClearAuthenticationCache"); - nitass
Employee
just wondering whether SSL::session invalidate is helpful. - Kevin_Stewart
Employee
You really want to destroy the cookies on the client side, so you'll need some way to know when a logout event is happening. There are probably a few ways to skin this cat, depending on the application.when HTTP_REQUEST { if { [HTTP::uri] starts_with "/logout" } { set logout 1 } } when HTTP_RESPONSE { if { [info exists logout] } { unset logout HTTP::header insert "Set-Cookie" "cookie1=1; path=/; expires=Tuesday, 29-Mar-2005 00:15:00 GMT" HTTP::header insert "Set-Cookie" "cookie2=1; domain=mydomain.com; expires=Tuesday, 29-Mar-2005 00:15:00 GMT" ... } }
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com