Forum Discussion

ramann_75062's avatar
ramann_75062
Icon for Nimbostratus rankNimbostratus
Mar 23, 2009

cookie expire time

Hi@all,

 

 

is it possible to add an expire time to an cookie?

 

 

I try to implement

 

 

http://devcentral.f5.com/wiki/default.aspx/iRules/HTTPSessionLimit.html

 

 

But the problem is, that when user close the browser, the :total_active_clients is not increase.

 

 

Reason for this is to implement a wainting room under high load.

 

 

We use: BIG-IP 9.4.6 Build 401.0 Final

 

 

thanks

 

Bjoern

2 Replies

  • Have you looked a the following:

     

     

    http://devcentral.f5.com/wiki/default.aspx/iRules/HTTP__cookie.html

     

     

    CB

     

     

     

  • Colin_Walker_12's avatar
    Colin_Walker_12
    Historic F5 Account
    You should be seeing the total_active_clients number decrement on each close connection. If someone closes their browser you should eventually get a session closed.

    Regardless, though, the answer to your question is yes, you can absolutely set and check the cookie expire time:

     
     HTTP::cookie expires  [seconds] [absolute | relative] 
     

    The above link that cmbhatt posted has all of the HTTP::cookie commands and their syntax.

    Hope this helps,

    Colin