You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SERVER_SIDE.md
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,15 @@ This presents two types of problems:
15
15
1. PHP writes a cookie via `setcookie()` and all spaces get converted to `+` signs. js-cookie read `+` signs and uses them literally, since it is a valid cookie character.
16
16
2. js-cookie writes a cookie with a value that contains `+` signs and stores it as is, since it is a valid cookie character. PHP read a cookie and converts `+` signs to spaces.
17
17
18
-
To make both PHP and js-cookie play nicely together you need to write custom converters:
18
+
To make both PHP and js-cookie play nicely together?
19
+
20
+
**In PHP**, use `setrawcookie()` instead of `setcookie()`:
0 commit comments