sangeeta bhat
sangeeta bhat

Reputation: 31

Cookies getting deleted Automatically

I have defined the cookie the Application.cfm page , But that is getting deleted Autometically , I need to again try to login to have the cookie defined.Not facimg issue with All the cookie any facing issue with cookie named THEMEMODE. Tried adding Expired date for the cookie. Still issue exist

<CFCOOKIE NAME="THEMEMODE" VALUE="0">
        <CFCOOKIE NAME="IntranetEmail" VALUE="#get.email#" expires="#ExpireDate#">
    <CFCOOKIE NAME="EmployeeDeptId" VALUE="#get.DeptId#" expires="#ExpireDate#">
    <CFCOOKIE NAME="Password_Dt" VALUE="#get.password_dt#" expires="#ExpireDate#">
    <CFCOOKIE NAME="Display" VALUE="#get.EmployeeID#" expires="#ExpireDate#">
        <CFCOOKIE NAME="THEMEMODE" VALUE="0">

Upvotes: 0

Views: 50

Answers (1)

Akash Maleesha
Akash Maleesha

Reputation: 31

The THEMEMODE cookie is being set without an expiration date, which causes it to behave like a session cookie. This means the cookie is deleted when the browser is closed.

Update the following code might work

Upvotes: 1

Related Questions