cookies

Android POST data and COOKIES

I have a username as password which I need to send to a website as part of an android application (yes it is https), and once submitted to the seerver via POST, the server should return cookies. I need to be able to capture these cookies, and allow them to be accessed in a webview which I have settup. How would I do this? Thanks ...

read and parse cookie

Okey im pretty new to php/javascript but what i would need to do is read cookie and then parse some part of it. How can i do it easily? php or javascript or okey. Cookie has something like this info: ssf.2313.1333 and I would need to get middle numrbers (2313). ...

Cookie not setting in PHP

Thought this was super easy, but I've spent the last half hour trying to figure it out to no avail. $unique_id = uniqid(microtime(),1); if (is_null($_COOKIE['client_id'])) { setcookie("client_id", $unique_id); } But when I go to check the cookie through $_COOKIE['client_id'], I get a null value. Any ideas whats going on? ...

Howto: pass a username and password back into a webview securely

I have a user's name and password stored in their preferences. How do I go about passing it back into the webview in a secure way? I know if I do this it will work, but it just seems bad. There has to be a better way to post the variables. webview.loadUrl("http://mysite.com?name="+username+"&password="+somepassword); I've been loo...

How can I get authlogic to use the Rails session instead of its own cookie?

I would like authogic to never set a user_credentials cookie, and only use the standard Rails session cookie. I see Session is included in Authlogic::Session::Session::Base after Cookies. If I log into my app and then delete the user_credentials cookie, I still stay logged in. So apparently authlogic is storing the credentials in both p...

Is an Ajax request guaranteed to send cookies?

I've just tested this and it seems that Ajax requests send the cookie header from the browser to the server each time. Is this a guaranteed behaviour which I can rely on, or is it something which may or may not happen? ...

Is there a way to open the content of a page via php, using the cookies stored in the browser?

I have a web-site based on PHP, to which I would like to add a members-only area. Instead of creating my own registration/login pages, I would like to make a piece of code which will look if the user is logged on a particular site (for simplicity, we could assume that this site is Facebook) and if yes, allow him to navigate on my site. I...

Issuing non-secure cookie over a secure connection results in pseudo-secure cookie

When Firefox receives a cookie via an HTTPS connection, it appears to treat it as a secure cookie, even though the server did not send it as a secure cookie. When I inspect the cookie from within Firefox, it displays "Send For: Encrypted connections only". When Firefox sends the cookie to the server in subsequent secure requests, inspe...

cookie expiration

hi i want to set the cookie before the login lik:if the user fails to login by typing wrong user id or password in 15 minutes then he should be restricted for the nest 15 minutes to login.. using Javascript i have set a cookie i want that if the user has exceeded 15 minutes from his first trail then he should recieve an alert or messag...

Is there any way to store cookies in django which is independent to browser ?

Is there any way in django to store cookies which is independent to browser ? is there any technique just like what flash SharedObject does ..? ...

How to set up my login system?

I'm trying to figure out if it is better to store my user's data in a session cookie (like password, username, etc), and update that cookie only when I change the MYSQL database from my PHP, OR Store the user's username and user ID in a session cookie and reach out to the MYSQL database every time I need to get the user's data. Which ...

Getting a cookies parameters in PHP?

How do you get a cookies params? The "expire, secure, httponly" etc. Is it possible? ...

PHP sessions and cookies

We have a PHP site that our users as well as clients use. Our login system works fine on all browsers. Recently we came across a client who was unable to login into the system. We also tested the same on the clients side and failed to find a solution. When a client logs in a cookie tk_client_admin is created in the browser, this is cre...

problems with cookies

i'm using restful-authentication plugin with rails 2.3.8 i've problems with cookies store i've put a logger instruction in this function for check the cookie: def send_remember_cookie! cookies[:auth_token] = { :value => @current_user.remember_token, :expires => @current_user.remember_token_expires_at } ...

Emulating Zend Framework's CookieJar

I'm porting over some function using Zend_Http_CookieJar but need some clarification. Presumably the CookieJar only lasts as long as the instance is running. So could I use curl to produce the same thing? : curl_setopt($ch, CURLOPT_COOKIESESSION, TRUE); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_COOKIEFILE, "cookiefil...

gae-sessions returning None when deployed on App Engine

I'm using gae-sessions in my App Engine program, and I have the following function: def get_token(): session = get_current_session() access_token = session.get('access_token', None) The code that sets the session up is simple enough: session = get_current_session() session['access_token'] = token I've put error trapping in ...

What is the last Unix time?

What is the last Unix time in decimal? I'm going to set it as the expiration date of cookies (using PHP). Is it possible to cause problem? ...

How does "Facebook Connect", "Sign in with Twitter", etc. work technologically?

I'm curious how these systems work technologically. As I understand it you do the following as a user: Go to your favorite 3rd party site. Click the "Facebook Connect" button. Log into Facebook (if not already). Authorize Application You are routed back to the 3rd party site logged in. But, how does the 3rd party site talk to FB abou...

Do i login using cookies or sessions in a login system?

Do i login using cookies or sessions in a login system? I've seen examples using sessions and cookies so i am confused! Can someone please explain this? What do most sites use? love to know! Thanks in advance;-) ...

PHP cookie writes on incorrect domain

I have a cookie that I use on my app. It looks like this: +-------+-------+-----------------------+-------+----------+ | Name | Value | Domain | Path | Expires | +-------+-------+-----------------------+-------+----------+ | foo | bar | my.domain.tld | / | Session | +-------+-------+-------------------...