session

Difference between CookieStore Sessions and Encrypted Cookies in Ruby On Rails

I was wondering whether there is any difference between a session and an encrypted cookie (configured to expire as the session cookie does). Aren't they the exact same thing? Or Rails provides extra security for sessions? ...

Why not use Cookies for Authentication instead of sessions?

I would like to persist the user authentication between user sessions (basically a "remind me" by default). Sessions expire while cookies persist: why should I use a session for authentication and then another different cookie for the "remind me"? Can't I simply store a cookie whith a token and use it for both authentication and persis...

How to handle session items between subdomains in asp.net?

HI All, In my application i have so many subdomains, now i need to transfer the session from one subdomain to other. How to do it? ...

Does refreshing a page destroy PHP sessions?

I've got a captcha command that sets the value of a Session and then refreshes the page if the captcha code isn't correct. In verification section of the page: $_SESSION['refresh']=1; echo '<META HTTP-EQUIV="Refresh" Content="0"; URL="contact-test.php">'; When the page loads it runs a bit of php script to see if there is a value set ...

How to abandon session if user X's out of browser?

Hi, Is there a way to do a Session.Abandon() when the user just kills the session by X'ing out with the little red X box in the upper right corner? I am seeing situations where after an "X out", the user comes back in and it seems like session variables are still present? I guess explorer keeps them intact? (I am unsure of this). Th...

PHP; use sessions or re-use query?

Hey, I'm interested in what is the more efficient way of handling user data in my game. When someone is playing the game, data from the server will constantly need to be queried from the database. So I want to know if it is more efficient to keep querying the database or to store the data from the first query in a session and then keep...

PHP session save_handler user (mysql) won't save

Hey guys, here's what I'm attempting: PHP sessions work by default with my configuration, if I just go session_start() and try the standard session increment test it works. if (!isset($_SESSION['count'])) { $_SESSION['count'] = 0; } else { $_SESSION['count']++; } However I want to use a MySQL table for session storage. I've ...

share php session

hello everyone. I recently ran in a problem and I've been trying to resolve it with out any luck. I'm, trying to share the php session across several servers php/apache level on all server using GlusterFS,however, although the session is accessible on all servers the session does not get transfer once I hit a different sever. I get logg...

Zend framework session expires prematurely

This should be extremely simple, but I can't seem to get it! I'm using Zend Framework for PHP and handling sessions with the Zend_Session module. This is what I have in my Initializer (or bootstrap): Zend_Session::start(); Zend_Session::rememberMe(864000); 864000 seconds should be good for 10 days, but I'm still being kicked out at ...

Detecting Session expiry on ASP.NET MVC

I have built a shopping cart that uses Session State to keep the shopping cart data while the user is browsing the store. I have an issue where if I leave the browser window open for a long time on step1 of the shopping cart, then press "go to step 2", my actions throw an error because the step2 action assumes the session hasn't expired...

how to save enum value to session

I'm creating enum property. This property should saved into session. My code is here public enum TPageMode { Edit=1,View=2,Custom=3} protected TPageMode Mode { get{ if (Session["Mode"] == null) return TPageMode.Edit; else { retur...

How can I find out the amount of open sessions programatically in Tomcat using Java?

Is it possible to find out the number of open sessions reliably in Tomcat (i.e. not only the amount of users who have logged in since [current time]-[session time out], but the number of sessions stored on the server)? ...

Are all session variables sent over HTTP?

I like the idea of a so called session-ID, which is sent to the browser and returned back for auth. But can I store more data in serverside session variables, for subsequent sessions to access? I'm using PHP. ...

InProc Session State not working

Anyone have any ideas why a servers InProc session state would not be working? Is there a manual reset for it, or a way to check? Thanks Session mode is InProc, timeout is 25 minutes. At this time I'm unsure if the Session object is null, or if the session object is empty and cannot be accessed. I'm thinking it could be a cookie is...

Is a PHP session variable shared across running scripts?

Are session variables in the global $_SESSION array shared across scripts? Lets say I place a value into $_SESSION['box'], can another simultaneously running script store another value with the same key? Will they conflict? Or will it manage the actual variable values based upon the session ID from the client? ...

how do i invalidate a session in jsf

I have a session scoped bean. WHen logging out i do the following final HttpSession session = (HttpSession)ctx.getExternalContext().getSession(false); Map map = ctx.getExternalContext().getSessionMap(); map.clear(); if(session != null) { session.invalidate(); } and then redirect to login page. but when signing back in i the ...

Disabling asp-sessions. Any known issues?

I'm in the process of disabling asp-sessions completely from a site. Its quite a large and complex site, but we're not using the session object programatically anywhere, so I'm just curious if anyone know of any "hidden" issue that may occur if you disable sessions? Viewstates, ajax etc? We're using Dundas components for charting and map...

ASP.NET session in Javascript

I have the following code invoked from a button click - js event function onOkReason() { alert("called"); var session = $('<%=Session["A"]%>'); if (session == null) { <%Session["A"]%> = "1"; alert("1"); } else { <%Session["A"]%> = null; alert("2"); } alert(session)...

How can I manually load a Java session using a JSESSIONID?

I have a servlet which handles a multipart form post. The post is actually being made by a Flash file upload component embedded in the page. In some browsers, the Flash-generated POST doesn't include the JSESSIONID which is making it impossible for me to load certain information from the session during the post. The flash upload compon...

When to use TempData vs Session in ASP.Net MVC

I am trying to get the hang of MVC framework so bear with me. Right now, the only thing I'm using the session store for is storing the current logged in user. My website is simple. For this example, consider three domain objects, Person, Meeting, and File. Users can log in and view a "members only" profile of a meeting and can add file...