use the correct variable for cookie expiration
parent
e382b2e468
commit
3bc020178f
|
@ -521,7 +521,7 @@ module Msf
|
||||||
if datastore['CookieExpiration'].present?
|
if datastore['CookieExpiration'].present?
|
||||||
expires_date = (DateTime.now + 365*datastore['CookieExpiration'].to_i)
|
expires_date = (DateTime.now + 365*datastore['CookieExpiration'].to_i)
|
||||||
expires_str = expires_date.to_time.strftime("%a, %d %b %Y 12:00:00 GMT")
|
expires_str = expires_date.to_time.strftime("%a, %d %b %Y 12:00:00 GMT")
|
||||||
cookie << " Expires=#{expires};"
|
cookie << " Expires=#{expires_str};"
|
||||||
end
|
end
|
||||||
cookie
|
cookie
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue