session

Session questions

Hi, I am having trouble in understanding of how I need to do this: Have list of items on my home page and when users click on that, I take them to a page where i ask for name and email id(both are optional fields) and when users hit submit, I will take them to other page where they get to see all the details. the reason for that name ...

How do you securely connect a flash application within an Ajax menu and keep the flash session when the Ajax menu is closed?

How do you securely connect a flash application within an Ajax menu - and keep the flash session when the Ajax menu is closed? Example, click the A-jax menu which slides open thus revealing a flash application - log into the flash app takes you do some other secure menus (it's connecting via secure connection) but when I close the a-jax...

Asp.net mvc application authentication lost every 20-50 seconds

hi, My asp.net mvc application, requires me to login every 20-50 seconds, i contacted the hosting provider, who says its due to recycle of pool. i have added following code to web.config. <sessionState mode="StateServer" stateConnectionString="tcpip=localhost:42424" cookieless="false" timeout="20"/> the problem is not solved, how do...

is there any session server for classic asp? or can we manage multiple sessions between different machines and classic asp application?

hi , we have a classic asp web application which has divided into three parts and spread into three different web servers but we want to manage our sessions at the very first place of entering users into the site. as much as I know there is no official program or method for doing so in classic asp so I was wondering if somebody could h...

Are sessions faster than querying the database?

So for example, the user is logging in, and the system is storing informations about them example: birth date, so is faster to get this information from the session, or to query the database for it? My idea was, that the user needs to login just once and the session is always there, but If I query the database, then if the user reloads...

What are the risks of PHP sessions?

So everyone says that sessions have security risks, I want to know what kind of risks are these? What can hackers do with sessions? This is not about knowing how to avoid attacks, I want to know how hackers are doing it, and what are they doing. I talk about PHP SESSIONS. ...

How to set session max inactive time?

Hi, I get the session MaxInactiveInterval time using the following query. I am developing web application using JSF Framework var sessionMaxInactiveTime = ${pageContext.session.maxInactiveInterval}; I need to set maxInactiveInterval. how to set maxInactiveInterval using JavaScript, JQuery, or to write Servlet. But i want to contr...

If admin block a user then session of that current user should be expired in ASP.NET

Is there anyway to implement this.If admin block a user then session of that current user should be expired in ASP.NET ...

Admin terminating a user session

Hi, In our project, we have a situation where the administrator needs to 'force log off' a particular user under certain conditions. In other words, the admin user needs to have the ability to kill any other user's session. Is this possible? By using the session properties, we can kill the current session (the current user's session) b...

Parse PHP Session in Javascript

Hey everyone, I have recently gone into extending my site using node.js and have come to realisation I need a session handler for my PHP sessions. Now everything was cool and dandy and node.js reads the php sessions and can propogate it's own session with the php ones. I am using database sessions so the session data gets saved into a f...

Load a picture in a webpage from Flash

I'm editing a web page to access it only after login, so now it's a php page with an inital <?php session_start(); ?> and in the body of the page I test the value of a session variable. All works fine but in the header there is flash animation that don't load background picture. In the old version of the page this picture was loaded f...

rails: what is the most efficient way to store sessions?

I am implementing a dynamic application for 4 desktops in my house so i don't think that security is big issue however i would like to know what is the most efficient wayto implement sessions?cookies ?store it in the database or in the memory? thank you ...

Cookie across different domains

I am working on building a learners website (http:localhost:8080.xyz.com).This is being built on glassfish server using gwt.I need to integrate forums(http:localhost:8888.abc.com)into this site .The forum is built using php and is on Apache Server. Both the websites share the same MySQL database and this database has a table named sessi...

Problem with PHP session in Xampp

At it's simplest, if file_1.php contains <?php session_start(); $_SESSION["test_message"] = "Hello, world"; header("Location: http://localhost/file_2.php"); ?> and file_2.php contains <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd"&gt; <html> <head> </head> <body> <?php if (!...

How to access HTTP sessions in Java

How to get any http session by id or all currently active http sessions within web application (Java 2 EE) in an elegant way? Currently I have a WebSessionListener and once session was created I put it in ConcurrentHashMap() (map.put(sessionId, sessionObj)), everything ok, I can retrieve HTTP session from that map in any time by session...

Simple way to monitor result of request to detect session timeout?

I've got an Ajax app I would like to add sessions and logins to. Currently the app uses jQuery get shorthand to send a request that.ajaxRequest = $.get(query_string, function(data, textStatus, xhr) { // do somthing with data }); I have a system on the server that throws an error message if the session has expired. On the client...

Session management via pure CGI

I'm currently in the process of writing a little blog / generic posting system using CGI in C as a hobby project and am now in the need of a session management system to authentificate authorized users for posting, editing and similar operations over multiple CGI programs From working with PHP years ago I remember using the superglobal ...

session question with virtual host

hello, everyone! i have a question about sessions hopefully someone can help me with. I have a apache test server set up that uses virtual hosts for http and https. I put the following files in my https and it works: mytest.php: // this starts the session session_start(); // this sets variables in the session $_SESSION['color']='red'; ...

How to replace "Login" button with user name in CodeIgniter

I'm trying to create a universal header for a website built on CodeIgniter, and I'm having trouble figuring out the code that will switch the 'Login' link for the user's name (with a link to the profile page) after the user logs in. In the controller functions, I've tried the following code: if(!$this->session->userdata($userSession...

Should I care about Open Session in View when using Grails?

From my experience of using spring MVC in conjunction with hibernate I know about lazy exception problem occured when addressing to lazy-fetched collection when rendering view. It pure spring+hibernate world it fixes by introducing OpenSessionInViewInterceptor or OpenSessionInViewFilter thus enabling one hibernate session per request. S...