Tag: cookies

63 votes
9 answers
1.2K views
Handling cookies in PhoneGap/Cordova

I'm working on a PhoneGap app with server session usage. It needs cookies to handle the session. Addition

avatar
Dorian
0 1 0 9
asked 07 September, 2021
54 votes
11 answers
2.4K views
Why is jQuery's .ajax() method not sending my session cookie?

After logging in via $.ajax() to a site, I am trying to send a second $.ajax() request to that site - but when

avatar
Don
0 1 0 9
asked 07 September, 2021
57 votes
16 answers
1.1K views
How do I set/unset a cookie with jQuery?

How do I set and unset a cookie using jQuery, for example create a cookie named test and set the value to 1?

avatar
Omar
0 1 0 9
asked 07 September, 2021
59 votes
17 answers
360 views
How do I expire a PHP session after 30 minutes?

I need to keep a session alive for 30 minutes and then destroy it.

avatar
Hildegard
0 1 0 9
asked 07 September, 2021
61 votes
4 answers
1K views
Why is it common to put CSRF prevention tokens in cookies?

I'm trying to understand the whole issue with CSRF and appropriate ways to prevent it. (Resources I'

avatar
Wei
0 1 0 9
asked 07 September, 2021