I'd like to make an http request to a remote server while properly handling cookies (eg. storing cookies sent by the server, and sending those cookies when I make subsequent requests). It'd be nice to preserve any and all cookies, but really the only one I care about is the session cookie.
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Monday, June 11, 2012
How do I make an http request using cookies on Android?
Friday, June 8, 2012
Login/session cookies, Ajax and security
I'm trying to determine the most secure method for an ajax based login form to authenticate and set a client side cookie. I've seen things about XSS attacks such as this:
Tuesday, May 29, 2012
How do I expire a PHP session after 30 minutes?
I need to keep a session alive for 30 minutes and then destroy it.
Friday, May 18, 2012
How do HttpOnly cookies work with AJAX requests?
JavaScript needs access to cookies if AJAX is used on a site with access restrictions based on cookies. Will HttpOnly cookies work on an AJAX site?
Wednesday, May 16, 2012
How can Javascript be prevented from accessing PHP cookie data?
(Taken from a job interview)
Which of the following answers are correct ?
Sunday, May 13, 2012
Why jquery ajax not sending session cookie
I am getting logged out when I send request by ajax in a login session. I check headers sent by FireBug and show there was not cookie
Thursday, April 19, 2012
Proper way to use "Remember me” functionality in PHP
Short
Working on login system and trying to implement remember me feature.
Sunday, March 11, 2012
How do you configure HttpOnly cookies in tomcat / java webapps?
After reading Jeff's blog post on Protecting Your Cookies: HttpOnly . I'd like to implement HttpOnly cookies in my web application.
Tuesday, February 28, 2012
JAVA: How can I download an HTML file from a site that requires cookies enabled?
I'm trying to download an HTML file from a site. I'm using the following simple method:
Monday, January 30, 2012
Can we set a cookie in php according to client"s time?
I have following requirements:
- create a cookie for server domain
- that cookie will expire in x seconds say in 200 or 500 seconds.
Monday, January 16, 2012
How to implement a “save” feature with dynamic content using cookies
I would like to implement a "save" feature, which allows my users to save a particular entry that I have presented to them from my database. For example, if they see something they like, they can press the "save" button and it will save to a "bookmarks" page.