I am running an ASP.NET application on an IIS7 server. It has been running fine for a long time, but over the past week or so it has been discarding all users' sessions several times a day. I enabled all of the application pool recycle logging options as described in http://blogs.iis.net/ganekar/archive/2008/12/12/iis-7-0-application-poo...
I am looking at a design pattern which has come up in quite a few of my firm's projects. It has historically functioned correctly, however I have heard some other developers argue that there is a possibility of session corruption using this pattern. I'm looking for insight from other .NET developers here on Stack Overflow.
Basically, t...
Hi,
I have 2 J2EE applications which needs to share some common user related data of logged in user. Is there anyway by which i can store these data in session from one application and retreive that data in second application.. ie. something similar to sticky session in .NET
Any help appreciated..
...
hello community,
i have a problem with session in my webapplication (asp.net mvc rc2). the application works fine on asp.net mvc rc1.
i use the follow code for session timeout handling:
if (cnt.Current.Session != null)
{
if (cnt.Current.Session.IsNewSession)
{
string cookie = cnt.C...
Currently I am using ViewData or TempData for object persistance in my ASP.NET MVC application.
However in a few cases where I am storing objects into ViewData through my base controller class, I am hitting the database on every request (when ViewData["whatever"] == null).
It would be good to persist these into something with a longer ...
Hi,
i get sometimes this error:
Fatal error: Uncaught exception
'Zend_Session_Exception' with message
'session has already been started by
session.auto-start or session_start()'
in
/www/htdocs/w00a1ed7/autospin/redaktion/library/Zend/Session.php:462
Stack trace:
#0 /www/htdocs/w00a1ed7/autospin/redaktion/library/...
Usage case: In order to handle acces rights for a web application without having to check them each time a page is displayed, I came up with this sheme:
When an administrative user grants or removes access rights to an application user, check if there is a session currently associated with him. Case being, alter session data.
Does php5...
hi,
i am trying to store an object in session..
in one controller, i create the object and put it in session.
MyObject _o = new MyObject();
Session["MyObject"] = _o;
MyObject _oo = (MyObject)Session["MyObject"]; // added for testing purposes, is not null
i can retrieve the object from session just fine from within same controller. ...
Hi, I have a site which I am doing credit card transactions.
The issue is this:
if the user goes to: http://mysite.com and then the logic redirects the user to https://www.mysite.com, I lose my session data.
As the title suggests, I am using Symfony, version 1.2
Now, looking in my apps/site/config/factories.yml file, I added the below...
I have a static class with serveral static methods. In these methods, I'm trying to access the current thread's context using HttpContext.Current. For example:
var userName = HttpContext.Current.User.Identity.Name;
However, when I do that, I receive a NullReferenceException, the infamous "Object reference not set to an instance of an ...
I'm using a modified version of Felix Geisendörfer's SimpleAuth/SimpleAcl components that I've combined into a single Component, Simple_Authable.
I changed his startup() function to initialize() to not clutter the beforeFilter function in my app_controller.
One of the things that this component does is check who the active user is and ...
hi,
i am trying to access Session variables in the constructor of a controller and ControllerContext it seems is always null.
When is the earliest the session variables are available?
thanks!
Edit: Example:
in one controller:
public HomeController()
{
MyClass test = (MyClass)ControllerContext.HttpContext.Session["Sess...
The client has a streaming server (unknown for us at this time) that is used for streaming H.264 streams from IP cameras. This is fine in their LAN.
Now they want to allow authorized users to watch the streams over the internet. But they have few requests for these internet users:
The users have to "login" to the application to watch...
is it possible to insert an object into a session instead of creating a different sessions (in PHP)???
...
Is this valid:
$_SESSION['pictures']['rateAlbum']['_POST'] = $_POST;
I want to save all of the POST data in the session in one shot.
edit:
oh and what about the other way around:
$_POST = $_SESSION['pictures']['rateAlbum']['_POST'];
...
I'm new to asp world, and I have to keep my new job :)
Switching form php to asp.net 3.5 (never used before).
What would be the best practice for storing a SESSION variable in my project ?
How can I prevent my SESSION to be overwritten if my initialisation code is in the onPageLoad method of my MasterPage ?
My variables keeps beeing o...
Hi! I have a question about sessions on ruby-on-rails.
We have a several options about session storage such as cookie, active_record_store, etc..
I primarily use the cookie storage, but, there are some client which doesn't support cookie function. In that case, I have to make that client to use the "active_record_store".
My rails versi...
I've got a rails app with authlogic authentication and a username.domain.com structure built with subdomain-fu.
But my session breaks when going from domain.com to username.domain.com. I've tried to add
config.action_controller.session = {:domain => '.localhost:3000'}
to my development.rb but that seams to break authlogic disabling s...
Now, I'm a user of ruby-on-rails 2.3.5.
I want to override the method of "session_store" in ActionController::SessionManagement::ClassMethods.
In my overrides, I need the "request" object which has a lot of useful information such as host name, domain name, etc...
Do you have any idea to get the "request" object in that method.
My rails ...
Ive got a site that does a few ajax calls on page load, now for some reason, codeIgnitor is inserting 4 sessions (I'm assuming for each ajax call) as you load the page. I'm storing the sessions in the database.
I'm pretty sure there should only be one session per browser? FF seems to only generate one, other browsers seem to create a wh...