Questions tagged [session]

A session refers to the communication between a single client and a server. A session is specific to the user and for each user a new session is created to track all the requests from that user.

session
Filter by
Sorted by
Tagged with
3 votes
1 answer
850 views

Not able to access session in Httpmodule for static resources like css /js/ image files

I have created a HTTPModule. Session information is retrieved using PreRequestHandlerExecute. It is working well for aspx pages. But while loading css/js or any image files, Session is null. I have ...
Swati's user avatar
  • 31
3 votes
3 answers
10k views

Get session by id in ajax call

Is there a way to have access to session in a AJAX call made to a JAVA server. On the server, the request object has both the session and cookies properties NULL. I can pass though the session id ...
Gabriel Diaconescu's user avatar
2 votes
1 answer
2k views

Listening for Hibernate Session creation [duplicate]

I have a bug in my code that is causing a hibernate exception where an object is being associated with two open sessions when calling session.lock(). I am using Spring 3.0.4 with HibernateTemplate ...
Mike Q's user avatar
  • 23k
1 vote
1 answer
1k views

What is better for asp.net mvc site sessions or cookies?

what is better for asp.net mvc site for users login and maybe some wizard status saving sessions or cookies, and what is safer?
valisimo's user avatar
  • 633
0 votes
1 answer
773 views

PHP: $_SESSION never getting set, but $_POST is ?

[@the downvote and idiot remarks, that's not cool to beat up on people. I rechecked the documentation and coursenotes for 3 whole days before even asking the question - . Closing this to prevent a ...
smci's user avatar
  • 33.4k
0 votes
2 answers
157 views

How does php script handle two PHPSESSIDs?

How does php script handle session vars if it gets two cookies with PHPSESSIDs ? Does it populates $_SESSION with vars from first PHPSESSID or from last one ? Or just merges them ?
HongKilDong's user avatar
  • 1,316
14 votes
3 answers
4k views

Jetty/Tomcat encrypted cookie-based session storage?

Ruby on Rails has supported signed cookie-based sessions for quite some time, with a few encrypted implementations springing up since then. Python and PHP also have implementations. Does such a beast ...
tjdett's user avatar
  • 1,713
3 votes
1 answer
4k views

PHP session extension does not consider global variables

I am currently getting the error: Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not ...
RANGER's user avatar
  • 1,673
3 votes
1 answer
9k views

Codeigniter Users Login Check

I'm a novice with Code Igniter and I'm currently building my own user system. I'm curretly on the login process and I have implemented a check for whether a user is currently logged in or not. In my ...
James's user avatar
  • 737
2 votes
1 answer
8k views

https Session and posting problem

I have an application that needs to be able to post to https with an authentication request and then a register request. Currently i am able to post my authentication request to https and it works ...
prolink007's user avatar
  • 34.1k
2 votes
3 answers
3k views

Purpose Of PHP Sessions and Cookies and Their Differences

I am just starting to learn to program in PHP and have ran into a slightly confusing area, Sessions and Cookies. I understand the server-side and client-side storage differences but i cant see how ...
Mike McGee's user avatar
0 votes
2 answers
944 views

How can incorporate session variable in jQuery

I want to incorporate a session variable $_SESSION['LI'] into the jQuery with an if statement. So if($_SESSION['LI'] == 'falsus') hide the #feedback else show #feedback. Thanks <?php ...
AndrewFerrara's user avatar
0 votes
6 answers
191 views

parsing in ruby

I have this Hash: cookie = {"fbs_138415639544444"=>["\"access_token=138415639544444|5c682220fa7ebccafd97ec58-503523340|9HHx3z7GzOBPdk444wtt&expires=0 &secret=64aa8b3327eafbfd22ba070b&...
Matt Elhotiby's user avatar
0 votes
1 answer
549 views

Sessions (CodeIgniter)

I'm trying to implement a sort of favorites list that lasts with the session. Currently I have my sessions stored in the DB and favorites are stored in a separate table with the session_id of the user....
RS7's user avatar
  • 2,351
0 votes
3 answers
315 views

jQuery Cookie Question

I've looked around a lot, and can't seem to find anything that's simple enough for me to do... I've set up a web page that detects which browser is currently running, and if it's something other than ...
JacobTheDev's user avatar
0 votes
1 answer
809 views

Guest/Member Sessions in ASP.NET

Hello I have a class Cart and class ShoppingCart. Now the problem is about sessions. I have been battling with it for hours, but the issue is that the same session is being by a guest and a member. So ...
user478636's user avatar
  • 3,354
0 votes
2 answers
92 views

Minimizing Customer Interruption During Deployment

How do you deploy new code into production so that the customer experience is not interrupted? Let's assume an e-commerce website that's in a load balanced environment, where no session state is ...
Bradford's user avatar
  • 4,163
5 votes
2 answers
18k views

Check whether a PHP session exists or expired using AJAX

How to set the php session time out, I'm trying like below, but I dont think it works ini_set("session.gc_maxlifetime", 600); How to find out whether a php session exists or expired using ajax (...
user237865's user avatar
  • 1,240
23 votes
4 answers
20k views

how to use sessions in express, couchDB, and node.js

so I basically want to use sessions to store the users name and check to see if the user logged in or not. If not, the page will redirect to the login page. I am using Node.js,express,and couchDB. ...
Ernesto11's user avatar
  • 281
0 votes
1 answer
2k views

codeigniter sessions set globally

I am trying to use codeigniter on authenticated pages and it prompts me to login every time ...I realized I could fix the issue with this $lifetime=600; session_set_cookie_params($lifetime); ...
Matt Elhotiby's user avatar
2 votes
1 answer
2k views

Logged In user switching to another user in PHP session

My problem is that when I login as user 1, I can see users 1 info for about 1-2 pages but when I go to another page or refresh the page I'm logged in as another user (user 2). But if I log in as user ...
HELP's user avatar
  • 14.4k
0 votes
3 answers
3k views

Calling Session.flush in Hibernate session bulk update

I have a list of object, for each object I am executing Session.update(), when should I call Session.flush()? After the list complete its iteration or after each update? The code segment is: public ...
Tapas Bose's user avatar
  • 29.3k
49 votes
5 answers
60k views

where does session save?

I would like to know where PHP session data is saved; is it in client browser? or on the server? When I disable cookies in my browser setting, PHP can't save session data, but in php.ini, I can ...
Moein Hosseini's user avatar
0 votes
2 answers
3k views

JSF Session issue in different browser windows

We have an application which is built on JSF 2.0(MyFaces) and runs on Weblogic app server. We are facing an issue regarding http Session. Issue: Suppose I have opened the app in two different IE ...
nobody's user avatar
  • 1,919
0 votes
1 answer
715 views

Loading the resultset of a SQL query and saving it to a Session in ASP.NET?

I want to be able to use the query select * from cart and save that in an List. IN my class CartItem, I have defined attributes of id, name ,quantity, and totalprice Now i want to save it in a ...
user478636's user avatar
  • 3,354
6 votes
2 answers
1k views

How do you make rails 3 work as a backend for mobile apps with support for session_id's in the request?

I am trying to build a rails 3 back-end for a mobile application. However, I am new to creating rails 3 apps. Users will need to have a session on the server, but I have no support for normal cookies,...
Mosselman's user avatar
  • 1,728
45 votes
1 answer
29k views

ASP.NET - Access Session from static method/static class?

I would like to access the session object without passing it to my static helper function. This is so I can save and load things from the session object automatically with minimum extra fluff. Is ...
Joshua Enfield's user avatar
0 votes
3 answers
5k views

CakePHP setFlash() weird problem

I want to $this->Session->setFlash('text'); $this->redirect('page'); but the message is not displayed. I have included both the Session Component and Helper, and the $this->Session->...
linkyndy's user avatar
  • 17.4k
0 votes
1 answer
5k views

How to implement user authentication and sessions with Python [duplicate]

Possible Duplicate: Bottle-friendly WSGI authentication library/middleware I'm creating a simple web application with Python and Bottle. What would be some simple way to add user authentication / ...
Facundo Casco's user avatar
3 votes
0 answers
766 views

How to use PdoSessionStorage in Symfony2

I want to use the PdoSessionStorage class for session storage in a Symfony2-Project. Can anybody tell me how to do so?
Timo Haberkern's user avatar
0 votes
5 answers
9k views

How to register global variables for php sessions

i get this error: Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables ...
dave's user avatar
  • 15.2k
1 vote
2 answers
636 views

Implementation of a Session-ID as part of HttpSession?

I am developing a new kind of an HttpServer, I would like to support the HttpServer Java-like functionality how does one implement such a feature? All I know is that you need to generate a long ...
KingDave's user avatar
  • 131
0 votes
1 answer
633 views

Problems converting session values where control in sql server db

Here is my problem, at my login i fill 2 sessions, 1 with the company name and 1 with the username. Using these 2 sessions i'd like to find the corresponding ID in the database. But as you can guess ...
Dieter's user avatar
  • 431
1 vote
5 answers
116 views

What is more efficient to send between web pages objects by session or to send ID and make new queries to sql server?

I have a web page where I gather information and create an object and two collections. The details are saved in tables on sql server. This information must be transfered to another web page in order ...
Dov Miller's user avatar
  • 1,988
0 votes
4 answers
364 views

Checking the user login

I have typical requirement that, if a user login to application and if he tries to log from different machine, system should through an message "as user already loggedin" and not to log him again. ...
developer's user avatar
  • 9,382
19 votes
4 answers
31k views

How to detect if user open two tabs for same session?

I've done a booking application done using CakePHP which involves a few steps before the checkout page. In between these steps I store the information in the session. How it works is that Step 1 ...
darnpunk's user avatar
  • 425
2 votes
2 answers
1k views

My session variables are not being saved across multiple pages

I'm strugling with why the session is not being saved accross my webpages. I have used this same code on a previous server and works perfectly, but when I tried to install the app on this new server, ...
Cesar Vieira's user avatar
102 votes
10 answers
181k views

How to end a session in ExpressJS

I feel like this has to be buried somewhere in the documentation, but I can't find it. How do you close or end or kill (whatever) a session in ExpressJS?
Stephen's user avatar
  • 8,100
1 vote
0 answers
2k views

Ajax requests clears the session in Rails 3.0.5 [duplicate]

I am writing a Rails application. When I was working with session variables, I observed that the session hash got emptied on reload of a page. I debugged it and accidentally found that in the onload() ...
rajaramyadhav's user avatar
0 votes
1 answer
513 views

Cakephp Auth component malfunctioning

I got trouble with auth component in cakephp, on ovh host. When i log in, no session variable are set : print_r($this_session) only show : Array ( [Config] => Array ( [userAgent] => [time] =&...
Damien Durant's user avatar
0 votes
2 answers
352 views

How to redirect to home page, when user is changed

I am in a problem and I hope that you guys will help me out. I have a web application, in which when I once logged in then if I open the application in a new tab in redirects me to the home page(which ...
user695310's user avatar
0 votes
1 answer
728 views

PHP $_SESSION Array Problem

I am just trying to write a function in php that adds to the discount array but it doesn't seem to work at all. function addToDiscountArray($item){ // if we already have the discount ...
Darius's user avatar
  • 5,229
0 votes
1 answer
978 views

Remember-Me with Spring Security, various questions

I'm using Spring Framework 3.0.5 and Spring Security 3.0.5 for developing a webapplication where users can log in and log out, using Remember-Me-Service, if they want to. As I don't have pretty much ...
nano7's user avatar
  • 2,505
3 votes
1 answer
7k views

Saving List<CartItem> to a Session in ASP.NET

CartItems are saved in the the SQL database. I want to put all CartItems in a List and transfer to Instance.Items. The Instance Variable is being saved into the session. The code is below. public ...
user478636's user avatar
  • 3,354
1 vote
1 answer
2k views

Deleting a session/structure with coldfusion

I have a session which is a collection of structures SESSION.squad.achievements[key] so it may be SESSION.squad.achievements[2010] = "swam the english channel"; SESSION.squad.achievements[...
Ross Mark's user avatar
1 vote
1 answer
589 views

Session/Cookies not getting set (Post, Redirect)

I'm having a big problem with Session and Cookies in Classic ASP. I have "a.asp" where I set the Session("step") = "1". This works and when I call my "test.asp" where I do <%=Session("step")%> ...
Effdee's user avatar
  • 53
1 vote
1 answer
1k views

Silverlight plugin and ASP.NET session

will the session of the ASP.NET page hosting the Silverlight plugin expire/timeout when no work/interaction is done on the Silverlight plugin? if ASP.NET session timeout is say 20 minutes and the user ...
user287745's user avatar
  • 3,101
0 votes
3 answers
443 views

JBOSS Configurations

Disclaimer: I am more of a programmer and have little knowledge of JBOSS. When we deployed the system, it works properly in the test environment. However in production, since there are multiple ...
ASC's user avatar
  • 137
21 votes
1 answer
30k views

How to use cookies in JSF

I have a JSF form over a JSF 1.2 Session Scope Bean. I have a "Reset" button which invalidates the session. I tried to use cookies to remember a session number (Not JSF session but my private session ...
Ben's user avatar
  • 10.2k
0 votes
1 answer
11k views

Recovering a lost/dropped session in R?

Is it possible to recover an R session if R needed to close due to an error? Is there a temp directory where sessions/data sits before its saved to a file? What I'd really need is the history of ...
drapkin11's user avatar
  • 1,195

1
800 801
802
803 804
889