session

Maximum size of session data in different browser

Hi folks, I am storing data in session variable (using PHP). I don’t know what is the limit for session. I am using Firefox version 3.6. Wanted to know maximum size of session variable for different browsers(FF, MSIE7/8, chrome, opera, safari ) Also please suggest that, storing data in session variable is good way ? I am not storing ...

Secure cookies in PHP sessions

I have developed a PHP session class and tested it using a few examples (see source code below). It appears to be okay. Now I would like to make this session somehow "secure". I found some sample code which is meant to encrypt a cookie (in Courioso's book Expert PHP and MySQL). Here is this code snippet. Code for encrypted cookie $cook...

Facebook connect not returning the session in the expected format

I've been trying to add Facebook Connect to a website, but it didn't seem to get the user id after logging in. So, after a bit of checking around, I discovered what seems to be the problem: The facebook library expects $_REQUEST['session'] to exist (in the getSession() function), but when I output the $_REQUEST, I get this structure: A...

SwfUpload's params are not set correctly

I'm renovating an application to work through AJAX. Unfortuantely, the action url in my form is getting messed up somehow. Do you know why this is? Currently my swfupload param of : upload_url: $('#new_video').attr("action"), is returning a SWF DEBUG: Event: uploadError: HTTP ERROR : File ID: SWFUpload_0_0. HTTP Status: 302. SwfU...

Authlogic: Setting expiration date for cookies

Is there a way to set the expiration date for the session cookies created by Authlogic? ...

Getting infinite FB session key from an iPhone application

I have an iPhone application which uses FBConnect to log the user in and also get some extended permissions. Now I need an infinite FB session key to post some info on the user's wall and I am trying to get the offline_access extended permission which seems to be not working. FBPermissionDialog is not even showing that offline_access pe...

Memcache clustering for php sessions ?

Hello, Here's a little background, currently i have 3 web servers one db server which also host memcache for php sessions for the 3 web servers. I have the php configs on the 3 servers to point to the memcache server for sessions. It was working fine until alot of connections were being produced for reads etc, which then caused conn...

Multiple sessions possible per user.

If a user opens 2 web pages simultaneously they will create 2 sessions. Usually this would not matter but it does create a problem for remember me functionality when attempting to rotate cookie tokens as recommended in the persistent login cookie best practices. There seems to be no way to rotate both cookies correctly where both sessio...

Web app NHibernate Session Management Summer of NHibernate style

I'm writing a web app using ASP.NET MVC 2 and picked NHibernate as my ORM. I basically learned my basics from watching the Summer of NHibernate series, and have adopted the authors session per request strategy for managing a session (Ep 13). Things seem to work well, but I'm concerned about whether this is a functional real world appro...

Handling Simultaneous Session Updates

In my django app, I have one AJAX view that gets flooded with calls to an update method, which I'll call IncrementMagicNumber: def IncrementMagicNumber(request) : number = request.GET['increment'] request.session['magicnumber'] = request.session['magicnumber'] + int(number) return HttpResponse("OK!") This works fine for one u...

Php sessions in different browsers

If I log in to a website with the same user name and password in different browsers then close one of the windows, will the session still exist? ...

timeout and session timeout issue

I have a problem with timeout. firstly the timeout happens every 20 minutes on server even if the time in webconfig is set to 120 mins. second, when the timeout happens it goes to the login page, which is correct but on logging back in it sometimes goes to the default page and sometimes to the page it was previously on. I want it to go...

php session creating / reading problem

Hi All, I'm trying to create a very simple login in php. All i want to do is, register a session called user if the login is successful and direct the user to an inner page. in that inner page i have a include file which should check if the user session is created or not if created -> authorize user if not created -> redirect to login...

session is kept track of, for its time out?

but session variables are stored at the server so how does the server keep reocrd of whose session has timed out. is any cookie used at the client side? ...

Rails ActionController::InvalidAuthenticityToken All browsers

Hi, I'm having an issue with one user. No matter what he does he ends up getting throwing an ActionController::InvalidAuthenticityToken error. I have tried having him clear his browser's cache, cookies, etc. He gets this using both FireFox and Internet Explorer. I'm at a loss as to why this would be occurring for just him. Everythin...

Pre-existing session required for handler method xxxxx

I am getting this exception when I authenticate a user on facebook and facebook redirects to callback... Before sending the request to facebook, the session is there but on calling the callback it creates a new one? I am using MultiActionController of spring and session is the 3rd param of the method signature. Would I need to use coo...

Delete cache when web browser is close.

Hi all. I have issue about multiple login in asp.net. Case this happen: User X login as "user1" in web browser. Then user Y also login as "user1" also in another web browser. User Y got error message "Another user log in some account". That is work as expected. If X, close their web browser. Then try again to login in as "user1". X get ...

What's the default hibernate session control behavior in spring?

I have a 3 layer application using spring and hibernate (controller -> service -> dao) and transaction is applied to service layer. I don't configure OpenSessionInViewInterceptor or OpenSessionInViewFilter and I want to know the hibernate session control behavior. Open session per transaction or per request? Thanks! ...

How do I keep Struts2 from appending jsessionid to the URL (on redirects)?

I want to keep the jsessionid parameter out of the URLs generated by Struts, but can't seem to find a configuration parameter or similar. To be honest, I don't even know exactly at which level this is handled. Specifically, Struts (or the servlet engine) puts a sessionid in the URL when it's redirecting with a 302 and the session has no...

Best way to Identify a user uniquely

I am building a Like/Dislike feature. For this purpose I need to identify the particular user liking or disliking the post. I have an idea that without user logins this cannot be done perfectly, but whats the closest to perfect technique, Issues I have are stated below: Cookies can be cleared, and vary form browser to browser Most of t...