session

How to access codeigniter session variable from external site

I've trying to add a messageboard to my Codeigniter web site. Everything has gone well except for one little part: I'd like my log in from the main site to carry over to the messageboard. Since the messageboard is not able to run in Codeigniter, I made a subdomain to run the messageboard in. This means that the main site and the messa...

PHP: illegal session id

Possible Duplicate: Session hijacking or attack? Lately I am receiving following error on my site PHP Warning: session_start(): The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' This error occurs on this line session_start() does anybody have idea why its happening? Tha...

counting online number of users of a web application

Hello everyone, I am using ASP.Net + .Net 3.5 + VSTS 2008 + IIS 7.0 + C# to develop a web application. I want to count how many users are online. This is my current implementation, when Session_Start is called, I will increase # of users online by 1; when Session_End is called, I will descrease # of users online by 1. Two quesitons,...

How to expire sessions after a certain amount of time in PHP?

I need all active sessions to be destroyed when I call a certain function. This function when called needs to destory all sessions NOT immediately but after exactly 30 seconds. Even if the user leaves the page where the session was called before the 30 seconds, his browser should still be cleared of all sessions so when he comes back to ...

Strange logging off on ASP.NET 3.5 website

Please help me I'm getting desperate here trying to find the problem, and I don't know where to start looking for it. Here are the symptoms: I've noticed, that when a user logs on in the morning, he is then immediately logged off, then when he logs on again, everything is fine and he can work on the site. Every once in a while, when t...

storing session id as a string and casting it back to GUID

hi, I´m trying to use session to store a value (id). The problem is that I have to store it as a string. When trying to use the instance of the id I get the error: Exception Details: System.InvalidCastException: Specified cast is not valid. Source Error: Line 156: Line 157: Nemanet_Navigation newFile = new Nemanet_Navig...

Same session on all subdomains except one

Hi, I already have example.com, en.example.com and es.example.com sharing the same session (session_cookie_domain: .example.com). I want subdomain.example.com to have a different session because it's a different app. I'm not sure if this can be done, as it may depend on how the browser reads the cookies. It works on Safari, but not in ...

How to destroy a session of another than current user in asp.net

Hello, I'm using asp.net 4.0 with asp.net MVC 2.0 and the asp.net membership provider. I need to terminate a the user session before I delete it. Otherwise if the user is still authenticated the next time it will visit a page null reference exceptions will occur when trying to access the user data and profile. I get the Session.Abando...

Use of StateServer with C# Website?

I've got two web portals that are almost identical in architecture. One requires that I add the following to my web.config and enabling the state server, as the logged-in user sessions expire after 2-5 seconds: <sessionState mode="StateServer" stateConnectionString="tcpip=localhost:42424" coo...

How to implement a Windows Service to manage Session state?

I'm working on an ASP.NET MVC web application that will be deployed across multiple load-balanced servers. With this setup, a user might have one request served by server A and the next request will be served by ServerB or ServerC. We don't want to store Session Data in the database, as we're trying to minimise database hits where ever...

php $_SESSION array not retaining values stored from previous pages

I am trying to create a form where there are multiple sections. It is actually an online menu ordering system. If you remain on the same section (say.. Appetizer), the values successfully load into $_SESSION and displays in the textbox as value. However, if you switch sections (say.. Soups), the values first loads. But when you submit yo...

InternetSetOption deadlock?

I have an application which uses Webbrowser control to navigate to a few vendor sites and scrape reporting. Because there are several accounts with one vendor, I need to have the browser end its session and clear any set cookies. I am using API calls to wininet.dll for both and am able to achieve the desired result. However, intermitte...

GAE logout url giving error 404

My GAE java based application uses only one google user - the admin. For the admin web pages I generate the logout url using UserServiceFactory.getUserService().createLogoutURL("/") The generated url is always having a /zero at the end and clicking on it gives 'Error 404 NOT_FOUND'. I The problem occurs on development server as wel...

Unable to change session variable through AJAX in IE

I'm getting some weird behavior from IE when trying to change a session variable on the server using AJAX. It works fine in FF, Chrome, Safari, and all the others I've tested but not in IE. I'm maintaining a list of variables (integers) in a session variable for anonymous users so I can keep their data when/if they register on the site....

GaeUtilities: Session Problem

Hi, I'm programming an application with google app engine, with django 1.1 (no django pacth or others), well as you know is impossible use django login and session features so I download Gae utility and use Session Object (http://gaeutilities.appspot.com/) but some time this object create 2 sessions instead 1 session ... here's code d...

How to modify MachineKey for Session State Server?

I'm trying to implement a SessionState server to allow multiple web servers to share the same state. At first this will be the different dev machines, and later it'll be the different web servers in the web farm. So far, I'm making good progress I think, but one of the requirements has me confused. In order to implement this, I need to ...

How to retreive Active Directory environment and session information with VB.Net

I'd like to be able to get and set the different information for a user in Active Directory on Windows Server 2003 under Environment and Session tabs through a VB.Net application. I am familiar with System.DirectoryService but I can not find the correct attributes for these particular tabs. For example, I'd like to check "Connect Printer...

How does Analytics and Usability software do this?!

Hi folks, I have been using analytics software for a while, and I've been asking myself how can such software copy a webpage completely to then place it in an iframe and overlay it with images and info. An example: A major problem I encountered is copying the webpage. In particular, copying the webpage the user is currently viewi...

ASP.Net MVC - Sending an object from controller to view to controller

Hi everybody, I'm just starting with ASP.Net MVC 2 and might be doing something wrong. I have a controller who builds some objects and passes them to a view using ViewData. In the view I display the data etc ... and then want to submit the same data (plus other user input) back to the same controller. Is there any simple way to do this ...

Why can't I share Session state between 2 web apps with StateServer? What am I missing?

I'm having trouble getting 2 identical ASP.NET MVC applications to share the same Session using a Session StateServer. The reason I'm trying to do this is we will eventually be deploying this app across 3 web servers that need to share the same state. We need to use StateServer because we are trying to minimise use of the db for non data...