Troubleshooting Cookie Expiration and Formatting

The State Changers discussed an issue with cookie expiration. One participant noticed that their cookies were set to expire at the end of the browsing session instead of the desired week. They went over the code responsible for setting the expiration and determined that the calculation was incorrect. The participant was using milliseconds, but forgot to multiply the result by 1000. Another participant pointed out a double space issue in the code and suggested using the UTC string method to format the date correctly. They also noticed that there were two cookies being created and that they might be overwriting each other. The meeting ended with the suggestion to test the changes and seek further assistance in the forums if needed.

(Source: Office Hours 7/21 )

State Change Members Can View The Video Here

View This Video Now

Join State Change Risk-Free