session-cookies

Issue with apache tomcat redirects and Session Cookies

Heya, I support an existing website written in Java and deployed to Apache tomcat. Let's call it: www.mywebsite.com. This website includes a secure section, www.mywebsite.com/secure, which is behind SSL certificate authentication. As well as an SSL certificate, it also sets a session cookie with some user-specific information so that w...

Prevent multiple user logging into the same domain using the same browser

So its a ASP.NET problem where two users using the same machine, same browser. User 1 logs in the domain. User 1 changes some data without saving it. User 2 logs in the domain in a separate tab. User 1 switches back to his tab and saves the data. User 1 actually saved the data into User 2!! This is caused by the following mechanism: ...

GlassFish v3 JSESSIONID Multiple Subdomains and TLDs

We have one web application that is being built to serve multiple regional web site TLDs. In addition, the web application also supports thousands of dynamic subdomains. Examples include: www.example.com www.example.co.uk www.example.com.ar fred123.example.co.uk <== Thousands of this form fred123.p.example.us <== Thousands of this f...

How to read session values form another session instance in PHP?

Hello guys, I am doing something in PHP where I have to read session values for another session instance. example Browser1: $_SESSION['value']="user1"; Browser2: $_SESSION['value']="user2"; Browser1 will need to get "user2" value from certain request. The request will also include cookie(key, value). How can I do that? Thanks, Wa'e...

Previous Next ASP.NET application and Session Time Out Redirection

I have a application where I am trying to redirect on session time out so therefore in my master page I am checking if session variable is null for the redirection but the problem is that I have other pages(derived) from masterpage and on Page_Load of derived pages i am referencing some session variables there also and I've observed that...

In django, are all session data deleted if a user logs out?

I need to track some information on users, but would like to retain it for a fixed time period, say a week. If I set this value via request.sessions, and the user logs out, can I retrieve it if they log back in later? This all assumes that my sessions are normally set to expire in 30 days, if the user neVer logs out. While thinking ...

Cookie Based Menu Selections

Hi, I am new to PHP and would like to know how to setup and use Cookies to store user menu selections between pages. Basically, when a user say clicks on a menu option called "About Us", I would like to somehow store this selection via a cookie that I could then use somewhere else? FYI, I am using the jquery .click function to determi...

How do i set HttpOnly cookie in django?

and does it worth the efforts? ...

Multiple sessions in one instance using PHP?

I have a project where I would like to create two session cookies in one browser. The first session would be to uniquely identify a person, the second would be to share events within the session between users. I have been using a database for this, but would like the data to disappear when the session dies. There are no logins within the...

Django Admin Login Cookie Problem

Hi all, hope you can help We have a peculiar problem with logging in to django admin on our dev server---just surfaced today, sept 1st. When we try to log in using staff usernames and passwords we are returned the following message: "Looks like your browser isn't configured to accept cookies. Please enable cookies, reload this page, an...

How to config cookie-only sessions in pylons?

I want to use cookie-only sessions in pylons. I have found some documents for this problem, but unfortunately, they said a lot, but where and how to config it. http://pylonshq.com/docs/en/0.9.7/sessions/ http://wiki.pylonshq.com/display/beaker/Cookie-Only+Sessions I'm new to pylons, and I don't know how to config. Somebody can help me...

validating fb cookie using md5 hash

Hello, I am trying to incorporate facebook login in my ASP.NET web app and came across the following article which has a code sample for the same. http://ntotten.com/2010/04/new-facebook-connect-in-csharp/ The following is from the article. Next, and most importantly, the class validates the cookie. This validation uses MD5 h...

Rails 3 Cookie Based Sessions Question

With Rails 3, the default session storage mechanism is cookie_store. I assume that this means that the contents within the session hash are serialized, encoded and stored within a cookie in the browser? Does this mean that nothing (or very little) of the session is stored in the server? I've had a few issues where I had a cookie overflo...

cannot use cookies in cURL PHP

I'm using cURL to parse a website. http://www.hcmiu.edu.vn/bookforsale/showbooks.php It need session to view, if you don't have session then the page redirect to : http://www.hcmiu.edu.vn/bookforsale/perInfo.php I use this code to get session cookie but I don't know why I cannot see any change to file cookies.txt $urltopost...

Do session cookies expire when the browser is closed?

I have a PHP application where I set $_SESSION['user']="logged" once a user is authenticated. I call this loginpage.php. Once authenticated and the session variable set, the user is taken to a member page which starts with the lines: <?php session_set_cookie_params(0,'/'); session_start(); if($_SESSION['user'] != 'logged') { header ("L...

Creating a multi-page PHP form with sessions

I need to create a pretty extensive form with PHP/MySQL with a lot of conditional logic that ultimately ends with submission to the MySQL database. So basically the user makes their first choice with a radio button (has to be because they are "choosing" pictures) and then gets taken to the next "page" of the form based on that submissio...

Cookies using App Engine and Restlets

I would like to store an authentication token in a session cookie. I'm using google app engine and restlets. I've done a few searches, but I have no idea even where to begin. I would like to: Store the token in a cookie Read the cookie when the client makes a request through restlet Also, is the session cookie the correct place to...

Pylons, cookies not being destroyed

I am trying to remove a cookie called "session" to logout a user. request.cookies.pop('session', None) response.set_cookie('session', '', max_age=-100, domain='.example.org') response.set_cookie('session', '', max_age=-100, domain='www.example.org') response.delete_cookie('session', '', domain='.example.org') response.delete_cookie('ses...

how to find out whether website is using cookies or http based authentication

I am trying to automate files download via a webserver. I plan on using wget or curl or python urllib / urllib2. Most solutions use wget and urllib and urllib2. They all talk of HHTP based authentication and cookie based authentication. My problem is I dont know which one is used in the website that stores my data. Here is the interact...

PHP - why can't I get rid of this session id cookie?

I'm trying to troubleshoot a logout function for a web app. When you're logged in, the app has several cookies set for its domain. Here's the current logout procedure: You click a link, which sends you to a logout page The logout page runs a function that calls session_destroy() and also loops through all the cookies for the domain and...