Questions tagged [expired-cookies]

26 questions
6
votes
2 answers

ASP.Net identity slidingexpiration set to true does not re-issues cookie

I'm using ASP.Net identity authentication to control my application authorization, i need to terminate users sessions after specified minutes of inactivity, I tried to achivieve this by doing the following aproach public void…
6
votes
2 answers

What happens when a PHP cookie expires?

Can anyone tell me what happens when a PHP cookie expires? Will it be deleted? Will it be accessible?
Mohammad Saberi
  • 12,864
  • 27
  • 75
  • 127
4
votes
1 answer

handler.CreateJwtSecurityToken(descriptor); IDX12401

When my server runs locally (GTM+1) all is fine when i place my server in -8 timezone e.g. Then I get an Message: IDX12401: Expires: '[PII is hidden by default. Set the 'ShowPII' flag in IdentityModelEventSource.cs to true to reveal it.]' must be…
edelwater
  • 2,650
  • 8
  • 39
  • 67
3
votes
1 answer

Cookie Expiration times

Is is possible to find out when a cookie expires, I have set my cookie up doing this $_COOKIE[] = setcookie("bangUser", $unique, time() + (60*60*24*30)); is possible to print out is expiration date on screen somehow?
Udders
  • 6,914
  • 24
  • 102
  • 194
2
votes
1 answer

Ruby on Rails session expire date

I have following line in my application which let default cookie expire date 20 minutes. Rails.application.config.session_store :cookie_store, key: '_rails-omniauth_session', expire_after: 20.minutes Bu I want to set specific expire date for some…
Hilmi Yamcı
  • 463
  • 8
  • 20
2
votes
1 answer

How to modify cookie options after it's been set in rails?

I am developing a rails application. I just got stuck handling cookies. I have set my cookie in rails as follows. (cookies[AUTH_TOKEN_NAME] = { value: auth_token, domain: domain }). But then I tried to change its option value by…
user2172335
  • 101
  • 1
  • 10
2
votes
1 answer

How to set a cookie's expiration date in Javascript

I am trying to make a cookie that expires on a specific date. On w3schools they said to set it using document.cookie="mediaType=Video; expires=Fri, 13 Mar 2015 12:00:00 UTC"; However in my code it doesn't seem to be working. What am I doing…
Thomas M
  • 65
  • 1
  • 6
1
vote
1 answer

JWT expires too fast in .NET Core Web API

I'm facing a problem where my JWT expires within a few minutes after idling, even after I've set the ExpireTimeSpan to 60 minutes (or longer; even tried 1 year). Currently the way I'm keeping the token from being expired is to send dummy requests to…
1
vote
2 answers

Is setting cookie expiration time: "time()-3600", always correct?

for delete cookie in PHP: I read on the internet, and on my course slide too, that if we set expiration date to "time()-3600" we can't stay sure the cookie will be removed by the client, because the client time and the server time can differ. I…
artas
  • 148
  • 1
  • 3
  • 12
1
vote
1 answer

Expire JS cookie every Saturday

I need to be able to set a cookie and have it expire every saturday using Javascript but not sure where to begin. var now = new Date(); var day = now.getDay(); document.cookie =
Pdavis33
  • 49
  • 7
1
vote
0 answers

How to set expire time in cookies AngularJS (1.4)?

In case of user login I want to save the user data in cookies so that I can use that when the browser is closed and again open the website. For adding cookies I am using angular-cookies.js which given by angular.…
1
vote
1 answer

When does JavaScript session expire? How to delete cookie on session end?

I would like to delete the cookie named "username" once the user closes their tab/browser. I am using the following code to detect if user closes and cookie should be deleted. But cookie is still there. Why? In browser console resources, it shows…
Faizan
  • 1,847
  • 8
  • 40
  • 63
1
vote
3 answers

Cookie expiration is not working

We have an existed created cookies and they don't have any expiry date, so they are using 30 minutes default time to expire. I just wanted to make them expire in 2 minutes like below with set max age. Cookie sessionCookie = new…
User
  • 173
  • 1
  • 12
1
vote
0 answers

YUI set cookies expire sets different expire time in firefox and chrome

I want session to expire after a time period i.e 30 min. I am using YUI cookies utility for the task below is the function performing task for me. function setCookies(staffid,sessionid) { var currentDate = new Date(); var sessionPeriod = 1000 * 30…
Prateek
  • 36
  • 5
1
vote
2 answers

Cookies don't persist after refresh

I am using c# and mvc. I am trying to write a cookie to the user browser. But after a refresh of the browser the cookie disappears. This is my code for writing the cookie: movieCookie = new HttpCookie(cookieName); movieCookie.Value = "test; …
mashta gidi
  • 849
  • 1
  • 10
  • 30
1
2