session

Sessions Not Working Like They Should PHP

Hi everyone! I have a simple form which passes a session variable and it simply fails to load on the second page, I have same version, php 5, on both boxes, works on one not on the other, I checked to see if session id's were the same, and they are, exactly the same on both pages of the form (NOT on both servers, these are obviously di...

Determine which objects in ASP.NET are used in session

I have inherited a very large ASP.NET app that needs to be modified to use a State Server instead of in-proc sessions. I need to track down all classes used in session throughout the app and then determine if they can be serialized. Are there any tools that can be used to analyze the code to determine the classes used in session? ...

Django: Managing Session Variables to manage the browser back button

I am creating a web based Mock test paper, which needs to be fairly secure. The needs are Each question can be attempted and answered just once. All are multiple Choice questions Once a question is answered and the submit pressed, then that session must expire, and the same question must not appear either through back button or some o...

GWT: Storing Session ID in cookie, and then what?

Hey, I'm currently making a site using GWT, being hosted on AppEngine. I'm making it with my own logins that I'm making (I know Google provides something with GWT, but I need my own login system), and I've been trying to figure out sessions for quite a while now. I've found a few tutorials, and one of the sites that I was reading is htt...

PHP/AJAX check if session variable changed

Greetings! I need to dynamically check if a session variable changes every few seconds. For example, the PHP session variable "x" may have a value of "1", and then after five seconds, has a value of "2". The PHP session variable "x" is changed by using a form. If the session variable changes, I need the page to reload. How can I relo...

[Java] Connect to website and keep session?

Hi, I'm trying to connect to a website (source code below) that requires login and then browse it to download some files. I've managed to do this for another website using this code: public void initConnection(String _path, Map<String,String> _parameters) throws IOException { String data = convertMapToParams(_parameters); // ...

proper way to logout from a session in PHP

I have read many php tutorials for logout scripts, i am wondering what could be the proper way to logout from a session! Script 1 <?php session_start(); session_destroy(); header("location:index.php"); ?> Script 2 <?php session_start(); session_unset(); session_destroy(); header("location:index.php"); ?> Script 3 <?php session_st...

Can URL routing help with issues from multiple tabs and session storage?

I have an application that stores database IDs in session while editing several pages of data. When the user opens multiple tabs (or windows), data is being overwritten because the IDs are getting crossed up. I completely understand the problem, and was going to fix this by taking the IDs out of storage and passing them around in query s...

How to retrieve active sessions in a tomcat instance?

Hi all I was designated to implement a security requierement to mimic "messenger like" authentication, for example: if a user first logs in, then another user tries to log in with the same username, this new user will be prompted to "kick" the previously loged user and the system should invalidate the first user's web session, the web ap...

Losing Session State

I have an ASP.net application where Users aren't able to successfully complete certain actions, for reasons, I'm assuming, can only be related to losing their session (which is where I maintain their current user information, and how determine whether they are logged in) I'm at a loss as to why they would lose their session, so my first...

Session hijacking and PHP

Hi guys. Lets just consider the trust that the server have with the user. Session fixation: To avoid the fixation I use "session_regenerate_id ()" ONLY in authentication (login.php) Session sidejacking: SSL encryption for the entire site. Am I safe ? Thanks. ...

creating global session

i want to create a global session which will stay active until and unless we manually kill it. how to do this in asp.net with c# what i am doing is HttpContext.Current.Session["UserID"] = someValue; but in this way the session is lost after some time. ...

update session variable by ajax

how we can update session variable by ajax in a php page. ...

ASP.NET SQL Session db setup problem/confusion

I'm trying to set up an ASP.NET app to use SQL backed sessions. When I run the following code Session["test"] = 1; a row is inserted into the ASPStateTempSessions table in session database, which makes me thing that it is all set up fine. But when a user logs in, no entry is made in that table. It should be, right? If not, where i...

Getting HttpContext from BackgroundWorker process

I have an ASP.NET site and I've been doing some work refactoring code to try to remove some long running processes (in the order of an hour) from the actual http Request by creating a BackgroundWorker and sending the work off to that to process. This was running fine on cutdown tests but when I applied the logic to the real code I found ...

Load file into PHP array, best way?

I have a text file that is around 1.7MB that has a list of words that I need for my application. I need to have it loaded into an array when the page loads and then be available to other PHP files that AJAX requests are made to. Right now I am loading it into an array on page load and then storing it in a session so that the AJAX file ha...

Getting session information from within an iframe.

I have a site that uses the database for storing its session data. on this site I have a link which opens a page that contains an iframe in it. Inside the iframe I have a 3rd party app that is using its own session information for login, etc. When I am inside the 3rd party app I want to be able to access the $_SESSION information fr...

how to turn off tomcat5 'session expire' log messages?

I've been trying to turn off these excessive log messages without success. INFO | jvm 1 | 2010/08/19 14:36:30 | DEBUG [ContainerBackgroundProcessor[StandardEngine[Catalina]]] (ManagerBase.java:677) - Start expire sessions StandardManager at 1282242990088 sessioncount 0 INFO | jvm 1 | 2010/08/19 14:36:30 | DEBUG [ContainerBac...

Trying to AVOID an ASP.NET session using cURL

I'm using a web-service from a provider who is being a little too helpful in anticipating my needs. They have given me a HTML snippet to paste on my website, for users to click on to trigger their services. I'd prefer to script this process, so I've got a php script which posts a cURL request to the same url, as appropriate. However, thi...

Preserve Session Variables Across HttpHandlers

I have an ASP.NET application with 5 .ashx HTTPHandlers that implement IRequiresSessionState or IReadOnlySessionState. Upon calling the first handler I create a variable and store it in the session. When I call the next HttpHandler the variable is not available in the session object. I am use context.Session. I have a global.asax whe...