Skip to content

Commit 703b40c

Browse files
Replace "js-cookie" with the project name as in the README
1 parent cb6db39 commit 703b40c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

SERVER_SIDE.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Server-side integration
22

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.
44

55
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.
66

@@ -12,10 +12,10 @@ In PHP, `setcookie()` function encodes cookie values using `urlencode()` functio
1212

1313
This presents two types of problems:
1414

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.
1717

18-
To make both PHP and js-cookie play nicely together?
18+
To make both PHP and JavaScript Cookie play nicely together?
1919

2020
**In PHP**, use `setrawcookie()` instead of `setcookie()`:
2121

@@ -65,7 +65,7 @@ var TomcatCookies = Cookies.withConverter({
6565
});
6666
```
6767

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.
6969

7070
## JBoss 7.1.1
7171

@@ -85,4 +85,4 @@ var JBossCookies = Cookies.withConverter({
8585
});
8686
```
8787

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

Comments
 (0)