session

Understanding Session Time-out (php)

I need to delete old user datas in the DB, if user session is timeout. How can I solve this problem with using PHP? ...

Maintaining One Session Per Form When Using an Intermediate Service Layer

Hello, In Building a Desktop To-Do Application with NHibernate, Oren Eini (a.k.a. Ayende Rahien) shares that the general recommended NHibernate practice is to use one session per form in a desktop application. In the example given, this is easily implemented because the form presenters have knowledge of the persistence layer and so can...

Drupal: session variable is lost when not logged in

I have a module in Drupal 6 that saves some information in the $_SESSION array. I use this information to customize some content in another page. The problem is that when I'm not logged in Drupal, the information is not saved in the session. When I'm logged in, it works as expected. Any ideas? Thanks. ...

What does my Servlet have that my JSP is missing?

I am currently working my way through a Sam's Teach Yourself JSP. In one chapter, we wrote a crude shopping cart application which used Servlets for various functions. Come Chapter 14, we replace most of those servlets with JSP using beans. For some reason that is eluding me, my JSP isn't working. Here is the functional servlet: ...

Maintaining a session over multiple pages.

I am having trouble designing a way to maintain a session with a cookie across multiple pages. I am doing something very similar to this tutorial. I check the password and username from a splash page, and if it is correct then I set a cookie and fill it with a hash. After that I transfer the user to a different page. If the username/...

ASP.NET Session Load Performance

Hi Everyone, I need to calculate some performance numbers for a few custom session storage providers. I need to know how long it takes to rehydrate session and how long it takes to persist it back to the store. None of the providers provide this level of detail in the debug information. Is there a generic way of tracking session load ...

CakePHP / Session Variables are Randomly Getting Dropped when Paginating

I am storing values in my session in one of my AJAX calls. The session is getting overwritten correctly. But when I make some other call (AJAX or non-AJAX), the session value is lost. This doesn't happen every time but in most of the cases. My security level is on medium already. here is the controller function and the view : http://bi...

Alternative for $_SERVER['HTTP_REFERER'] PHP variable in MSIE

Hi, I have used $_SERVER['HTTP_REFERER'] variable in my application (used PHP). On Firefox above variables is wokring. But i observed that $_SERVER['HTTP_REFERER'] is not working on Microsoft Internet Explorer 8. I also got to know that HTTP_REFERER variable doesnt work on MSIE8 and MSIE7. Please give me your suggestions, how to use $_...

How Can I Access Rails' Session In My Java App

Hi Guys, I have two web apps in one domain. One is written by ruby another is by java. And my rails app is using db session. So there have a "sessions" table in my database. What I want to do is reading the session info from this table in java. Here is my problem: Rails' sessions table is encrypted. So I can not read it directly from J...

ASP.NET handling dropdownlist selection across multiple tabs session or querystring?

I've recently been developing a website using asp.net webforms that uses in proc sessions and I noticed that session ids are shared amongst browser tabs. So I was wondering what you would do for the following situation Problem: In my application I have a requirement where the user is allowed to select a competition via dropdown list. I...

Is there a change between how session/cached info is stored with dif. Azure Guest OS?

I have an application running perfectly on windows azure since april. Unfortunetly, about 2 weeks ago it suddenly stopped. It would not run again until we upgraded the Azure Guest OS to the newest Version(1.7). Over the last two weeks we're noticing that session data transferred between pages (eg. http://program-url/cars/edit/3 will be...

VIM prompting for a variable when running a macro?

I find I waste a lot of time closing and reopening sets of files so I'd like to improve my VIM macro for loading and saving the session to support multiple sessions. I'd like for it to prompt for a string value, so that I could press my shortcut, then type in for example "foo", and have my macro save the session to .foo (so I also need ...

php encrypted ssl session data

I have 2 servers running, one for the dynamic content (nginx, php) and another for login (apache2, php) i use memcache to share the session information i upgraded the server software and since then the session data in apache is encrypted apache: session::write("sessions/s53mqdhghmlrvnvjt05novt4m2","encrypted-data",0,1440) nginx: se...

java/GWT web app : how to get a callback on Session Timeout

We have a GWT app that is deployed on Tomcat. On the server, we have set a timeout of 1 minute httpSession.setMaxInactiveInterval(1*60) At the client-side, we set a few cookies with a timeout value of 1 minute as well. After 1 minute, we notice that the client-side cookies are removed; However the JSESSIONID set by the servlet contai...

Redirection after session expiry for an ajax/json call

Hello I am working on getting data from database by sending a piece of value using the getJSON method of JQuery library, to a PHP function which fetches data from the database. The data is then put into an name:value pair array and is json encoded and returned/echoed. This would help jQuery to populate the required HTML elements with the...

TomCat jBoss Application

I have a .war(web app) deployed on Tomcat server. I have another application on jBoss server. The application on the Tomcat is the start point and a jsp on the jBoss server gets called from the Tomcat app. Then I am planning to set a session on the jBoss server app and when I am done my processing on the jBoss I will send back the contr...

post back when session expires in ajax call

On one of my pages I have a div that uses ajax to load content asyncrohnously. When a session expires the user is supposed to be redirected back to the loggin screen. However, when the session expires and the ajax call is triggered the login page gets put inside the div. What I want is for the user to be redirected back to the login scre...

How to default null session values to blank strings in C#

I'm used to using VB.net for web programming. Often, I have something like: Dim s as string = Session("s") I get a string value for s from the web session. If there is no value in the web session, I get a blank string. However, AFAIK, in C#, I have to have something like the code below to do the same thing. string s; try { s = Ses...

ASP.NET DataView - problem with RowFilter and application cache

Good afternoon ladies and gents -- I've been tasked with finding and fixing a bug in an unfamiliar legacy application that had some recent changes made to it, but I don't have an easy way (that I know of) to test my theory. I'm hoping your collective knowledge will verify the test for me. This application lazy loads lookup lists (tongu...

How to create "remember me checkbox" using Codeigniter session library?

Hello in Codeigniter I am building an Authentication system for my web site and to achieve that I use session library session->set_userdata('username') this will save the session -I believe- for some time I want to provide a "remember me" checkbox in the login form so the user can save the session forever - could not find a way...