session

How to execute server side code just before the asp.net session variable expires?

Hi, In my asp.net website I am creating a session upon user login and I would like to perform some operations in the database just before this session will expire.I am having problem in determining where should I write code and how will I know the session is going to expire. I am not sure if 'session_end' event of 'Global.asax' suits my...

Tornado Session in Redis

Hello, I am writing a lightweight Tornado based comet server. I would like to store the "self" object in redis to maintain the state.. Will this work? For a start, i cant even serialize self to be stored in Redis.. This is the error File "sessionsupport.py", line 27, in get this = cPickle.dumps(self,1) File "/home/test/lib/pyth...

C#.net webform, avoid losing data from session timeout

I have a user complaining about frequent timeouts in my Intranet web page. While looking for a solution I found this post: http://forums.asp.net/t/152925.aspx?PageIndex=1 Where a poster recommends intercepting the redirect to the login page, submit the data to the database, then either reauthorize the user (without their knowledge) or...

SESSION variables not passed from page after destroying the rest

I am at a total loss for words. I allow an admin to reset their registration if reaching an error during the process. In theory, the following code should function like this: page is reached, $adminvalidated is set based on session data. The $_SESSION array is cleared; the cookie is cleared on the consumer end; the session id is regne...

Session map is null when printed

I am working on JSF1.1 with JSP as presentation technology. I have a managed bean with an ArrayList and I display the list in as rows. Everything works fine. I have session replication with two server nodes and when I replicate the session, and put one of the cluster down, app is now on second cluster but the session attributes are los...

How to use session on Google app engine

Hi, im building an application using Google app engine with python, and im stuck with making a sessions. Is there any app that does that alreadyfor app engine? Thank you. ...

CakePHP: Accessing session data from within a controller

Hi, I have an edit action in the users controller. What I want to do is redirect anyone to a different action if their Auth.User.id does not equal the id of the user they are trying to edit. I can access variables in my views like this: if($session->read('Auth.User.id') != $id){ but this doesn't work in my controller. Getting: Und...

How do I get the Spring Security SessionRegistry?

I can't seem to find how to get a reference to the Spring Security (V3) SessionRegistry inside of a struts action. I've configured the listener inside of my web.xml file: <listener> <listener-class>org.springframework.security.web.session.HttpSessionEventPublisher</listener-class> </listener> And I've tried to use the @Autowi...

Shopping cart in jquery with php and session

Hi everyone, Good day! I'm now learning this jquery by creating a basic shopping cart were as add to cart buttons, remove items and clear buttons works in jquery. The function is to save the added items on session and can remove and clear also by jquery. I have an idea now on how the jquery works on adding the items. But not on removi...

Login system in .jsp

I have a login.jsp page which contains a login form . Once logged in the user will be taken to index.jsp and this index.jsp should know which user is logged in . If the user refreshes the page he will stay logged in and not taken back to the login.jsp. So there need to be some sort of session. I searched for an example and found about Ja...

While redirecting to secure server(ssl) in case data is huge , session is lost

In my application I need to use ssl. While redirecting from http//mydomain.com to https//mydomain.com session data is lost in case data is huge. I have tried removing https to http, but still no use. My server is on a linux machine. Please help me out. ...

Security considerations to be taken when developing a system similar to ASP.NET session

What security considerations are to be taken when developing a system similar to ASP.NET session? Edit: Some follow up to input received, Does encrypting the token actually offer real security? The ASP.NET session token is not encrypted, if they steal the entire cookie it doesn't matter whether it's encrypted or not the end result is t...

Working with sessions

I am making a "color-me-table", where I have a grid of cells, and the user chooses a cell, then can decide on what to change the color in that cell to. I have the table down, but I do no really understand sessions. I could have just asked a general question about sessions, but I thought this example might make more sense. Here is my tabl...

Youtube API / Zend GData library / Authentification

Heya guys, I want to let users on a website I'm building to log in with YouTube after clicking a link, so they can post comments on YouTube on some videos that I'm displaying from a YouTube feed, as well as let them upload their own videos that I would link on the website. Problem is, I'm using an unauthentificated instance of the Zend...

Error: Notice: Undefined index: SESSION_ADMIN_MEMBER_TYPE in...

hi i'm receiving this error Notice: Undefined index: SESSION_ADMIN_MEMBER_TYPE in ... how do I go about fixing this error? if((isset($_GET['p']) && $_GET['p'] != 'docs') && ( $_SESSION["SESSION_ADMIN_MEMBER_TYPE"] == 'normal' || $_SESSION["SESSION_ADMIN_MEMBER_TYPE"] == 'restricted' || $_SESSION["SESSION_ADMIN_MEMBER_TYPE"] == 'c_acc...

how to create session (iPhone)?

How do you log the user in, create and store the user's session? (It will timeout on its own aswell? do you need to store it in a database?) ...

ASP.NET Session - Use or not use and best practices for an e-commerce app

Hi, I have used ASP.NET in mostly intranet scenarios and pretty familiar with it but for something such as shopping cart or similar session data there are various possibilities. To name a few: 1) State-Server session 2) SQL Server session 3) Custom database session 4) Cookie What have you used and what our your success or lessons ...

How to properly invalidate JSP session?

So here is the problem. When a user logs out of my website, they can still hit the back button and continue using the site. To keep track of whether the user is logged in or not, I created a session attribute "isActive". The attribute is set to true when the user logs in, and is (redundantly) removed right before the session is invalidat...

Work-around for aggressive proxy/cache servers causing session problems?

I have a question regarding whether incorrectly configured proxy/cache servers might be the cause of an odd problem I have seen in my web application. The application is LAMP based, and run off a single host, and the service is used from a number of different countries. Sessions are used to manage user interactions. While this applicat...

Cakephp: How to read User Data in Session ?

I wanna gather the latest information of a user from the User Model and store it in the session. so i am doing this // Before Render function beforeRender() { if($this->Session->check('Auth.User')) { $this->User->recursive = -1; $currentUser = $this->User->read(null, $this->Session->read('Auth.User.id')); ...