session

HttpCookie is not deleted when session changes or is invalid

I'm creating an HttpCookie, setting only the name and value and not the expires property, then adding it to the response. Simple enough. The cookie is created (but not persisted) as expected. The problem is when the session changes for some reason (like the website was rebuilt, or I rebuilt my app when debugging) then the cookie stays...

Many Applications using One Session (Need to seperate them but keep One Session)

Hello, I need to somehow tell the difference between several applications all running under the same session. The problem arises from storing things in the session. If we add something in one application called "TestVariable" and the same variable name in another application it then gets overridden. All applications have an application...

ASP.NET Session State Server on IIS 7.5 and Windows 2008 - Not Working

We are moving an application from a hosting environment using IIS 6.0 and ASP.NET session state server (both on Windows 2003) to IIS 7.5 and ASP.NET session state server (on 2008 R2). We are having a problem, in the new environment, where if a user gets moved across servers in the farm, their session state is lost. We had this exact pr...

Are there any benefits in opening a user session in a new window without browser menus after the user logs in?

Some websites (I have seen quite a few bank websites do it) will have a user log in from their main website and then when the user clicks on log in, a pop window will open with the user session. This session will usually not contain any of the their typical browser menus or url address bar. I have read from a user experience perspective...

Bitvise Tunnelier Disconnect Sessions

Hi, I am using Bitvise Tunnelier to connect to a server. I got 'Too Many Connections' error when I am trying to connect this morning. I am not able to find a place where I can disconnect the existing sessions. Could anyone please help?? Thanks, Mahesh ...

Change session and keyboard language programmatically on Windows

It it possible to change the session language and keyboard language programmatically for current user via Windows API after the user has logged on? Changing some registry settings and logging off/rebooting is not a solution for me. I know that ActivateKeyboardLayout can be used to adjust keyboard but only works for the calling process. ...

C#: How can I send a PHP session variable to a WebBrowser control?

Okay, I am using the following code to navigate to a page in my WebBrowser control based on information entered in a login form: private string currentUser = usernameTextbox.Text; private string currentPasswd = passwordTextbox.Password; public static byte[] StrToByteArray(string str) { System.Text.ASCIIEncoding encoding = new Syste...

CakePHP Session Expires Even When Browser is Active

I am working on a e-commerce project using the Auth Component for authentication and Sessions Component for storing my cart. The problem is that the session gets cleared abruptly after a while even when I am actively browsing the site. I know this should be because of the Session timeout but just increasing the timeout value is not the ...

Can My Web App Implement User Login and Remain Stateless?

We have a web application that is stateless. We are using http authentication over SSL/TLS. The user's browsers are presumably storing authentication credentials (possibly even after a browser shut-down if they configure their browsers that way.) We validate them on every access. For reasons mostly having to do with usability, we wou...

What's the best way to share "session" information between 4 datacenters with 40 servers?

Currently our DNS routes the user to the correct datacenter and then we have a round-robin situation for the servers. We currently store the session information in the cookie but it's grown too large so we want to move it out of the browser and into a database. I'm worried that if we create a midteir box that they all hit that the resp...

Session timeout and AJAX in ASP.NET

I have a button that executes a script using AJAX. Normally when a session is still active the script will return some data that will be placed inside the parent page. If the session expired the AJAX will return the login screen which gets placed inside the parent page which looks really odd. How would I be able to detect a session time...

php SetCookie works in Firefox, but not IE

Hi All, I have two php scripts test.php <?php header("location: test2.php"); setcookie("test", "8kFL4IZfjkBmV7AC", time()+60*60, '/'); exit; ?> test2.php <?php var_dump($_COOKIE); ?> I then point my browser to test.php which redirects to test2.php. I then get the following results. In firefox, i get the following: array ...

Rails: redirect two pages back

I'm trying to get my head around this one: Say you have two models where: :bar has_many :foos And you have a url like this: http://myapp.com/24-name-of-the-bar-to-param/foos/new On my site this page shows a lot of information about the bar which users are going to create a foo for. So, even if a user isn't logged in the user will sti...

PHP: session_cookie over subdomains?

Hey guys, I'm rather new to PHP and sessions. I've actually never worked with them before and I'm having quite a few problems working with them with AJAX over a subdomain. I'm on http://www.example.com/whatever and I'm setting the cookie with: session_set_cookie_params(0, '/', '.example.com'); session_start(); if(!isset($_SESSION['pass...

naming conventions in Hibernate

could any one please tell me what is the naming convention the Hibernate developers fallowing to give names for DAO calass, Sesgleton class which create Single SessionFactory and retuns Session throug a static method, hibernate mapping files etc ...

How to differentiate between logout and session expired ?

Case 1: Log out : Once we log out, if one tries to access previous, it must automatically redirect to login.jsp Case 2: Session expired : If session expires when user is still logged in, it must try to automatically redirect to sessionExpired.jsp when previous page is accessed. How to differentiate ? I am currently invalidating session...

Destroy session in Pylons or Python

I can't find information on how to destroy / kill a session within Pylons or Python on the interwebs. Thought it would be a good idea just to ask it here so that when I need to do it again a year from now I'll find this question :) So I'm looking for a PHP session_destroy() equivalent for Pylons or Python. Thanks, Maggi ...

onBeforeUnload - how to call a server-side function without ajax

Hello Folks, What I want to do: dispose of a session upon detecting an "OnBeforeUnload" event in the client. I know it doesn't fire 100% of times (90% accuracy works fine for me) Here I saw how to do it with ajax, this system, however, breaks down with ajax: I can't use it at all. I'm searching for ways of doing it ...

Accessing variables from two different sessions?

I have integrated WHMCS and Drupal. However, when you go to Drupal and you print_r the SESSION, you see completely different information than what you would do if you go to the WHMCS pages. So, my question is, how do I access the one's session, from the other one? I need to access it, in order to see if the user is logged in or not. ...

Spring-Hibernate used in a webapp,what are strategies for Thread safe session management

I'm developing a web app with Spring and Hibernate and I was so obsessed by making he application thread safe and being able to support heavy load that based on my boss recommendation I end up writing my own session and a session container to implement a session per request pattern. Plus I have a lot of DAOs and me not willing to write t...