Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Interesting Cookie error - Bug?

Started by Muut Archive 10 years ago · 3 replies · 345 views
10 years ago

Soon after setting up my local site I started getting Cookie errors thrown in the form "Cookie names cannot contain any of the following '=,; \r
\013\014'" whilst trying to initiate the session.

In the Admin Plugin>Configuration I changed the session name from "grav-site" to "something else" and inadvertently introduced an error. This value is used to form the cookie name and Cookie names may not contain spaces. Only after quite a bit of investigation (coming from a non-coder) did I discover the cause. Well, I'm grateful that I found the error.

I think though that if someone inserts a space in the session name, that should be converted to some other character to avoid this error from being thrown.

10 years ago

I see your issue in github. Looks legit, i will get it sorted shortly.

10 years ago

Thanks, Andy :-) I'm not sure but it seems as though the space is converted to an underscore. Maybe that causes the error?

10 years ago

Thanks, I see that it is fixed - should have checked before my previous comment.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1368 9 years ago
Archive · by Muut Archive, 9 years ago
2 940 9 years ago
Archive · by Muut Archive, 9 years ago
2 4069 9 years ago
Archive · by Muut Archive, 9 years ago
1 2960 9 years ago
Archive · by Muut Archive, 9 years ago
3 1125 9 years ago