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?
...
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...
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?
...
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 ...
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...
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...
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 ...
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...
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 ...
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...
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...
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)?
...
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.
...
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...
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?
...
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 ...
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...
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)...
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...
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...