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
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Server-side integration
2
2
3
-
There are some servers that are not compliant with the [RFC 6265](http://tools.ietf.org/html/rfc6265). For those, some characters that are not encoded by js-cookie might be treated differently.
3
+
There are some servers that are not compliant with the [RFC 6265](http://tools.ietf.org/html/rfc6265). For those, some characters that are not encoded by JavaScript Cookie might be treated differently.
4
4
5
5
Here we document the most important server-side peculiarities and their workarounds. Feel free to send a [Pull Request](https://github.com/js-cookie/js-cookie/blob/master/CONTRIBUTING.md#pull-requests) if you see something that can be improved.
6
6
@@ -12,10 +12,10 @@ In PHP, `setcookie()` function encodes cookie values using `urlencode()` functio
12
12
13
13
This presents two types of problems:
14
14
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
-
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.
15
+
1. PHP writes a cookie via `setcookie()` and all spaces get converted to `+` signs. JavaScript Cookie read `+` signs and uses them literally, since it is a valid cookie character.
16
+
2.JavaScript 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?
18
+
To make both PHP and JavaScript Cookie play nicely together?
19
19
20
20
**In PHP**, use `setrawcookie()` instead of `setcookie()`:
21
21
@@ -65,7 +65,7 @@ var TomcatCookies = Cookies.withConverter({
65
65
});
66
66
```
67
67
68
-
Alternatively, you can check the [Java Cookie](https://github.com/js-cookie/java-cookie) project, which integrates nicely with js-cookie.
68
+
Alternatively, you can check the [Java Cookie](https://github.com/js-cookie/java-cookie) project, which integrates nicely with JavaScript Cookie.
69
69
70
70
## JBoss 7.1.1
71
71
@@ -85,4 +85,4 @@ var JBossCookies = Cookies.withConverter({
85
85
});
86
86
```
87
87
88
-
Alternatively, you can check the [Java Cookie](https://github.com/js-cookie/java-cookie) project, which integrates nicely with js-cookie.
88
+
Alternatively, you can check the [Java Cookie](https://github.com/js-cookie/java-cookie) project, which integrates nicely with JavaScript Cookie.
0 commit comments