session

Windows Azure SDK - ASPProviders example

Hi, since the new SDK 1.1 is missing the tutorial for "ASPProviders", i am currently asking myself how i would implement a "azure session state provider" ( this is the path in the "old" SDK: C:\Program Files\Windows Azure SDK\v1.0\Samples\AspProviders ) Related threads: http://stackoverflow.com/questions/1023108/how-does-microsoft-azur...

Rails 2.3 - Storing sessions in different schema

Hi - I want to configure my app to use a different schema than the default for storing sessions. Basically, I want the app to store all its active_record objects in app_development and only its sessions in app_sessions. Normally this could be done by defining the sessions db in database.yml: development: # ... sessions: host:...

Calling a SLSB with Seam security from a servlet

Hello, I have an existing application written in SEAM that uses SEAM Security (http://docs.jboss.org/seam/2.1.1.GA/reference/en-US/html/security.html). In a stateless EJB, I might find something like this: @In Identity identity; ... if(identity.hasRole("admin")) throw new AuthException(); As far as I understand, Seam injects the...

PHP Beginner: How to pass PHP variable from one PHP code segment to another ?

I have index.php which uploads a file to server and sets several PHP variables (like $target_folder_and_file_name). index.php also has the following line (it was originally index.html): <script language="JavaScript" src="main.js.php"></script> After index.php returned to the browser, the browsers asks for main.js.php from the server ...

how to make a session persistent with .net

Is there a way to set a persistent session that would not expire when closing/re-opening a browser. The cookie that is used to store the session_id expires when the browser is closed. I know we can make the Auth persistent (stay logged in when we close and re-open a browser). In this case, the cookie does NOT expire when the browser is ...

My Rails session is getting reset when I have concurrent requests

I think I might be misunderstanding something about Rails sessions, so please bear with me, I might not be phrasing my question the best way. I'm working on an iPhone app with a Ruby on Rails backend. I have a web view which by default goes to the index action of one controller (and uses sessions), and in the background a bunch of API ...

facebook auto loggin

I want to save the login information of Facebook after closing the application. So every time when user opens application, no need to login again. Is done by saving the session object into a plist? I'm using facebook connect. Thanks for the help ...

lost session after redirect_to

Newly added description: (sorry for not mentioning) The ApplicationController.current_account is defined as: class ApplicationController < ActionController::Base class << self def current_account @current_account end def current_account=(value) @current_account = value end end ========= I encountered ...

How should I implement lazy session creation in PHP?

By default, PHP's session handling mechanisms set a session cookie header and store a session even if there is no data in the session. If no data is set in the session then I don't want a Set-Cookie header sent to the client in the response and I don't want an empty session record stored on the server. If data is added to $_SESSION, then...

How to Synchronize Session / Security between ASP.NET and Tomcat?

I have an Asp.NET 3.5 application with security/authentication. I have a second application (built using GWT and running on Windows Tomcat) running on a different machine. I need to make the second application available to the user via a link generated from the .NET application. This part is easy, I have constructed the link in the ...

could not initialize proxy - no Session (Grails Runtime Exception)

Hi, I am using Grails 1.2.2 and I got this message sometimes. It usually happen if I got logged in the apps and the I tried to type url of home apps (http://localhost:9090/apps/) the error screen grab : for bigger view : http://img155.imageshack.us/img155/9982/ss20100609025018.png and the main.gsp code was in http://pastebin.c...

PHP How can I store Facebook session for further uses

Hello, I am trying to integrate Facebook to one of my projects. At this time I have successfully integrated Twitter so users can update their status while they are on my website. There is a one-time login to Twitter and then I store oauth_token, oauth_token_secret, user_id and screen_name so when they login to my site (via my own login...

Storing PLSQL stored-procedure values in Oracle memory caches for extended periods

I am collecting runtime profiling data from PLSQL stored procedures. The data is collected as certain stored procedures execute, but it needs to accumululate across multiple executions of those procedures. To minimize overhead, I'd like to store that profiling data in some PLSQL-accessable Oracle memory-resident storage somewhere for ...

IStatelessSession insert object with many-to-one

Hello guys. I've got common mapping <class name="NotSyncPrice, Portal.Core" table='Not_sync_price'> <id name="Id" unsaved-value="0"> <column name="id" not-null="true"/> <generator class="native"/> </id> <many-to-one name="City" class="Clients.Core.Domains.City, Clients.Core" column="city_id" cascade="none"></many-to-one...

set expire time for a session

I have a login page that uses session variables. How can i set an expire time for a session? eg: after 15 minutes of inactivity destroy the session. how can i do it? ...

Clear Session in ASP.Net

I want to clear the session on Page unload. Here is a condition : If user goes from Page A to Page B of the same site session must not get cleared. If user close the browser window or Tab(close the site),session must gets cleared. I have tried using AJAX PageMethod to call server-side procedure to remove session from client side sc...

Changing expiry on ASP.NET's Session State cookie

I'm using ASP.NET Session State to keep track of logged in users on my site. However, one problem I'm running into is that by default ASP.NET session cookies are set to expire when the browser closes. I've tried setting my own ASP.NET_SessionId cookie and modifying the cookie's expiry using something similar to the following code: R...

Sessions not persisting between requests

My session objects are only stored within the request scope on google app engine and I can't figure out how to persist objects between requests. The docs are next to useless on this matter and I can't find anyone who's experienced a similar problem. Please help. When I store session objects in the servlet and forward the request to a JS...

Opening a New Window in a New Session with Javascript in Internet Explorer 8

Hi We are migrating at work to Internet Explorer 8 and we are confronted to the new "feature" the so called "Session Merging", all new windows from IE8 share the same Session Cookie. That's creating some problems because we have a Web based system that must permit work in parallel in several windows, but each must have it's own Sessio...

Django message doesn't expire

My code in the view: from django.contrib import messages messages.add_message(request, messages.INFO, 'Hello world.') I don't want to show this code to the user the second time if he/she refreshes again. How do I go about doing that? Messages don't seem to have any sort of expiry setting. There is documentation here: http://doc...