session

Rails 3 reset session using devise

Hello, I am developing a Rails3 application and Devise for authentication. In the course of the workflow, I am storing information in the session, like patient_id. But, when the user log's out, I need to clear the session. I could've done it if I has control of user login and logout. But, now devise handles it. How could I do it? ...

Zend_Test - Logging in and out different users for PHPUnit Testing

Hello A similar problem to mine is in this thread, but it doesn't use Zend_Session so is different from my issue. I have successfully got PHPUnit working using Zend Framework's ControllerTestCase class. I can log in a user and write successful tests for that log in, so that is fine: $this->request->setMethod('POST')->setPost(array('us...

Save/Read user data across different browsers

I have been trying to figure this out for a couple of days now. My machine is a mac with snow leopard installed. I listen to music on http://listen.grooveshark.com/ using firefox, and I do not have a user account with them. When I leave the site and come back using firefox, I get an option to restore the songs that I had added to my pl...

How Do I Keep HttpSessions Alive in Tomcat?

I'm having a bit of trouble with Session timeouts in my Tomcat served web application. From reading over Tomcat's documentation, sessions expire after a time which can be configured in the web.xml file. <session-config> <session-timeout>30</session-timeout> </session-config> Quesion) Does this mean 30 minutes from when the...

is there any way to forbidden session write to file

if I know Session data is not changed , So I don't want session write to file again. but it seems impossible, because session will automatic write after php script shutdown. register_shutdown_function doesn't help, any ideas? ...

secure PHP login system?

Hey all, I've been developing a PHP-based CMS for use on my robotics team's website. Sure, there's plenty of other platforms out there, but what's the fun in that? In all seriousness, though, we do receive extra points for being able to say that we did more than make a template for Drupal or WP. This is a bit unrelated, but I'd like to...

how to store registered and guest session login in mysql

hi, i have a highscore system in that i have small doubt like i want to store the user session in the mysql table and also the guest session. like if the user is registered user then that session should be stored in the mysql db. else if the user is not registered i.e guest user then also i need to store with the guest account for my hig...

CodeIgniter session issue on Opera and Safari

I am using codeigniter 1.7.2. In my web app after logging out, on clicking the back button of the browser the page is reloaded in the logged in page. This issue is occuring on Opera and Safari only. I have disabled cache using meta, but that doesn't help. :( <meta http-equiv="PRAGMA" content="NO-STORE" /> <meta http-equiv="Expires" c...

How to upgrade Session Keys to OAuth Access Tokens Facebook ?

Dear all, I novice with RestFB Java library. In fact, I don't understand very well how to get an OAuth access tokens ? Before I used Facebook Api Java with API key and Secret key for authentification. Now, I want to use RestFB to replace this library. Can you help me please ? Have you got some Java example for this new mechanism ? Tha...

Session Per ViewModel in Desktop Application with Repository

I have been writing a WPF DESKTOP application using NHibernate, WPF, Prism and Unity Container but have a problem in terms of Session Management in Services / Repositories and how to do it cleanly through dependency injection using Unity. Having read Building A Desktop To Do-Application With NHibernate I now have a Session Per ViewModel...

Connecting non-flex client to server running blazeDS

I have Flex/AIR app that connects to a tomcat server via BlazeDS. I'm not finding that I have to integrate an old webapp (struts/jsp) and I'd like to keep that webapp untouched except for login, authentication and session handling. Also a 3rd java app that uses httpclient. Currently I have some blazeDS remote objects to handle login/l...

Multi language implementation ideas for user content (session, cookie, url, subdomain, sub dir, etc?)

I am lost on multi-language implementation. How to handle it? Session, Cookies, File, ...other ways? Overview Website is a user content website, like a social network. We will have system content controlled by us and user content translated by users. Languages supported will be system controlled. To start there will be the top 20 suppor...

Need to learn more about sessions in PHP

Can anyone provide me some learning resources that focus on session management in PHP? Preferably resources that aren't "dry". ...

3rd party app in an iFrame must keep header/top frame session alive

Page has a header and an iFrame. The iFrame has content from a 3rd party app. The 3rd party app is leaded from a different server than the page. The user will spend most of their time in the iFrame. If the user spends most of their time in the iFrame the top page session will timeout. What possible ways are there to prevent that? Is t...

PHP Parse error: parse error, expecting `','' or `')'' ...what to do?

session_start(); if(isset($_SESSION['username'] = $myusername)){ header("location:main_login.php"); } ?> <html> <body> Login Successful </body> </html> On runnig this I get the error Parse error: parse error, expecting `','' or `')'' in C:\wamp\www\a\l\login_success.php on line 4 Can someone help me out with this one, ? ...

Set Session variable using javascript in PHP

HI , can we set session variable using javascript in php? ...

Bind arbitrary Python objects to CherryPy sessions

I'm using CherryPy to make a web-based frontend for SymPy that uses an asynchronous process library on the server side to allow for processing multiple requests at once without waiting for each one to complete. So as to allow for the frontend to function as expected, I am using one process for the entirety of each session. The client-s...

Session invalidation in FF , Tomcat

Hi I am using Tomcat web container. I have an admin console app implemented. When I click on logout a session attribute is made null and invalidated see the below code in my logout.jsp file. After logout the user is taken to the login page. In fireFox I click back button I have the below issues. First I do not get page expired page lik...

Should StateServer (aspnet_state.exe) release RAM when a session ends?

I am noticing that the StateServer service only grows in memory usage. When a user logs out the session is ended with: Session.Clear() Session.RemoveAll() Session.Abandon() I assumed that StateServer would then release some memory, but it will actually consume a bit more. In web.config I have the timeout set to 20 minutes. The sessi...

php session doesn't work in safari

I have a simple login page. Everything works fine in Mozilla and IE. When I try to login in Safari, the session is empty, just a white page. If i check the session id, it gives me the id, but shows nothing else. echo session_id(); If I copy the page URL and then go to another page, and paste the URL, the browser shows the page.If I refr...