I have an ASP .NET information and I currently have session state turned off so I can't exactly hook into the session start event within the Global.asax. I want to get at this data, when someone comes to a site, and when they would normally start a session. What is the event that is fired to start a session so that I could hook into it a...
I have a need to maintain the session state in the database. However I cannot access the database directly from the web server. The web server communicates with an app server which in turn has access to the database.
Is there a way to configure this? Or does a custom component have to be written.
The reason for this setup is to allow ...
Hey all,
Having an odd problems with ASP MVC deployed on IIS6 (Windows 2003). I've simplified the controller code to the below;
<AcceptVerbs(HttpVerbs.Get)> _
Public Function CloseBatches() As ActionResult
ViewData("Title") = "Close Batches"
ViewData("Message") = Session("Message")
Return View()
End Function
<AcceptVerbs(H...
I was recently given an older ASP web application to maintain. I haven't touched it much, from what I understand, the actual VB6 project files are gone, so I only have the ASP files themselves to work with. Recently, users began complaining of being logged off, sometimes after a minute or less. I tried myself, and logged in once, clicked...
Hello all,
I've been struggling with this for quite awhile and haven't been able to
find a solution. I need a user to be able to view multiple top level
domains with a single login.
My understanding is that this needs to be set in environment.rb and
called with before_dispatch. This is what I've come up with:
require 'activesupport'
r...
I'm currently using the default cookies as my single sign on (SSO) but some users are getting strange errors after I push an update. I'm considering moving to active record to store sessions but was wondering how I tell rails that the sessions are in another database?
So if I store sessions via AR in App1DB how can all the other apps kn...
Hi folks, if I open a connection to the server from firefox browser, and then I open a new tab within the same instance of browser to make a connection to the server, is it considered one session to server or considered as two diff sessions?
Thanks
...
I have this classic ASP site which has been working fine until we updated it. It was just a site-update, meaning .asp files which ran fine in our test enviroment, no service packs or patches. I can not reproduce the error at all on a test-site on the same server.
The system it's running on is IIS6 on Server 2003.
Somehow, it has now st...
We've licensed a commercial product (product not important in this context), which is limited by the number of concurrent users. Users access this product by going through a Spring Controller.
We have N licenses for this product, and if N+1 users access it, they get a nasty error message about needing to buy more licenses. I want to m...
I want to keep viewstate of a specific page in session but following code block does not help me, what might I be missing?
So here is the code-behind file content of my page;
public partial class ConfigurationEditorWebForm : PageBase
{
protected void Page_Load(object sender, EventArgs e)
{
}
pro...
What is the best way to redirect to the login page when the session expires. I'm using
sessionState mode="InProc"
Can I set this in the web.config file?
...
This is something of a rant, as well as a question.
There are some sites, like Facebook, where you would only want to be logged into one account at a time.
But everything from blogging sites to email always force you to logout before you can login to another account.
And I understand the security implications, and how it would make c...
I'd love to have a utility that would save and restore my current desktop state, much like sessions in Firefox. At best, it would freeze every application's state, open window positions, etc. and provide a scriptable interface to restore them at any time, just as you'd left them.
More realistically, I could make a list of what applicat...
Using in-process session state is evil when it comes to scaling web applications (does not play well with clusters, bombs out when server recycles).
Assuming you just need to keep a small amount of information in the session state, what is the downside of using encrypted cookie items for this purpose rather than specific state servers/d...
Hi everyone, I want to access the session of a user from a different domain than the one that I initiated the session. Can I use session.session_id of the user and then retrieve the session hash of that user ?
Thank you
...
Hello, I am developing a PHP-based login system.
Each user has an ID(a number) and a password, which is stored as a salted hash.
I am able to figure out if a login is sucessful or not, but now I need to store that information somewhere(so that the user is not permanently logged out).
In the past, I've played with $_SESSION variables. H...
Shouldn't PostBack be checked before Session
protected void Page_Load(object sender, EventArgs e)
{
if (Session["login"] != null && Session["login"].ToString() == "1")
{
if (!IsPostBack)
{
LoadData();
}
}
else
{
Response.Redirect("login.aspx");
}
}
...
In ASP.Net the default Session Timeout is set to 20 minutes. Why so? Is there any specific reason behind it?
Thanking you.
...
If you cache data from your database in ASP.NET Session then you will speed up subsequent requests for that data (note: depending on the serialization/deserialization cost of the data concerned), at the expense of memory load in IIS.
(OK, this is probably a simplification of the reality of the situaiton - feel free to correct or refine ...
it's a really weird thing - i have a website that works perfectly in maxthon (internet explorer based browser). i started it in opera and found out that the data put in the Session dictionary on one site, is not available on the other... i mean i have Welcome.aspx, where when you click next the following code is executed:
Session["ses...