remove expired tag in PHP cookie

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
hodsonjl
New php-forum User
New php-forum User
Posts: 2
Joined: Wed Jan 10, 2018 9:23 am

Wed Jan 10, 2018 9:30 am

Does anyone know how to remove expired tag in PHP cookie session?

User avatar
hyper
php-forum Fan User
php-forum Fan User
Posts: 693
Joined: Mon Feb 22, 2016 5:52 pm

Wed Jan 10, 2018 10:11 am

Is there any reason that you can't just delete the cookie or am I missing something?

hodsonjl
New php-forum User
New php-forum User
Posts: 2
Joined: Wed Jan 10, 2018 9:23 am

Thu Jan 11, 2018 5:23 am

Requirement for our site is that persistent cookies cannot be used.
Here is an example of what is being returned:

Set-Cookie: PHPSESSID=791mrpq7o3dkhr8a1uskleefe3; expires=Tue, 09-Jan-2018
18:46:35 GMT;

Either I turn of cookies all together or I remove the expires tag and make this a session cookie.
I am new to PHP

User avatar
hyper
php-forum Fan User
php-forum Fan User
Posts: 693
Joined: Mon Feb 22, 2016 5:52 pm

Thu Jan 11, 2018 11:12 am

Are you talking about sessions or cookies?

Post Reply