I need help to share session in 6 web application.I want some sample code.
i tried several code but not able to resolve my problem.
View Complete Post
What's the easiest way to share session state between asp & asp.net 2.0
We're re-writing the majority of a Classic ASP app to ASP.NetHowever, there's a 3rd party Shopping Cart that we'd like to keep, but it uses Session state to associate the logged in person with the cart, and then, the database, etc.
I've heard that SQL Server can be used to store session state and share it between ASP and ASP.Net, though I've never used it.
Can it be used in this situation ?
Where can I learn more on this type of specific situation (if possible)?
i have two solutions, 1. user management and 2. travel management. i publish the user management solution to http://localhost/usermanagement/ and i publish the travel management to http://localhost/usermanagement/travel here i face the problem. the default home page would be http://localhost/usermanagement/default.aspx, its a windows authentication in page load, i capture the username, pass it to procedure which will fetch me his credentials on access. i store these in a session. in the home page i have link to navigate to travel page, when i try to access the sessions in travel page, its empty. i tried printing the session id in both user management and travel, both are same but the sessions created in user management are empty in travel. what would be problem here and how can i resolve this.
I would like to share the session variables between 2 applications. basically I have a website and in there I have 2 applications and want to share the session object betwen the two. Is there a way to set something in web.config to enable this?
I'm building a windows form that allows the user to manipulate an object and preview their changes in a web browser. In order to avoid data access I'm serializing the object and sending it to a web method. I then deserialize it and store it in the session. This all works fine.
However, when I attempt to open a new window and access a page that uses the stored session variable I am unable to access it because my session ID is different for the web browser.
Is there a way I can share a session ID between a WebMethod and WebBrowser?
All the research I've done points to extracting the session ID from the document and assigning it to the CookieContainer of the WebMethod. Since I'm not accessing a document before navigation the document object is null. I'd like to avoid accessing a dummy page in order to obtain a session ID. Is this possible?
P.S. Since I'm calling my webmethod first, can I extract the session ID from it and assign it to the web browser?
I have two web applications:
1. http://www.mysite.com - primary app running at the root of the web server
2. http://www.mysite.com/second_app - running in a virtual directory
At user authentication, I'm using FormsAuthenticationTicket to set up authentication cookies. Is it possible to share the same cookie for both the apps?
Any help would be much appreciated.
Hi to all,
I have some things that I want to know. I am right now using a free asp.net webhosting ("somee.com"). The problem is that when I am visiting a page, there's a tendency that values stored in my session variables are lost. Therefore, it causes an error when the requested page is loaded.
1. I am thinking of using sessionState mode="SqlServer". Will it solve my problem?
Actualy Im working on it but Im having problems when connecting to the sql database.
2. Is that a problem in the webhost?
3. Do free webhosting sites provide allow session state in the sql server?. Because ive tried it locally into my computer and error say's i should intall the ASP.NET Session State SQL Server version 2.0 or above.
I have a web application in which i need to logout the user if he clicks the logout button or even if he closes his browser window. On Logout button click, i am doing session.Abandon(), but how to go about his browser window close.
Can anybody help with a code sample.
is there any way to find out the reason for session expiry?
In my live site session time out with in 5 min only.how can i get the default i.e 20 min time . below webconfig file give below
<?xml version="1.0"?><!-- Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in machine.config.comments usually located in \Windows\Microsoft.Net\Framework\v2.x\Config --><configuration> <configSections> <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup,
System.Web.Extensions, Version=1.0.61025.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35"> <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup,
I am creating a simple shopping cart using a datatable that is passed into a session object. I have a small mini cart that displays the total number of items in the cart as well as the running total - this is displayed in a web control. When the web control starts up I run a try/catch to see if the session object exists, if it doesn't I create the datatable for the cart and store it in the session. I then have a datalist control that contains all the information for my products including an "add to cart" button. When the page loads everything looks fine. If I click on an "add to cart" button nothing happens to the session information. If I click on it again, the session information updates - displaying only one item is in the cart and then counts up correctly there after. Additionally, after adding an item, if I select a different item in the list, the same issue occurs. I am not sure why this is happeing, if anyone can give me an idea I would appreciate it.
I m facing a problem in my application with server so it needs changes .
My question is
Q1.Where should I store my session if i want to disconnect my server or How shold we storesession in web farm if specific serever is shut down.
Q2.Can anyone explain me difference between WEB FARM and WEB GARDEN
What are the issues (if any) of setting sessions to expire after an extended period of time as in 4-8 hours? I'm building an intranet app which is designed so that users will access it once in the morning and then leave it used, possibly, for hours at a time. I'm assuming that there aren't too many since
1) we're running it on a intranet 2) sessions are soley to retain state between requests3) its not like a connection to the DB where you can conceivable run out
iam insert record using datable in gridivew,iam using session to hold the record,
there is any other way to hold the record in datable.
dtempty.Columns.Add("storeid"); dtempty.Columns.Add("ratetypeid"); dtempty.Columns.Add("ratedesc"); dtempty.Columns.Add("slabs"); dtempty.Columns.Add("days"); dtempty.Columns.Add("rate"); dtempty.Columns.Add("contid"); dtempty.Columns.Add("continertype"); DataRow row; row = dtempty.NewRow(); row["ratetypeid"] = ddlratetype.SelectedValue; row["ratedesc"] = ddlratetype.SelectedItem.Text; row["slabs"] = ddlslabs.SelectedValue; &n
Having a very wierd problem. I have an application that uses Crystal Reports and it uses what I have found to be a common scenario (I am not a CR expert in any way). I have an ASPX page that gathers options for the report, and then it goes and gets the data and if there is some, a button appears for them to launch the report. On clicking that button, the code sets some values in the HttpResponse.Context area, then performs a Server.Transfer to another ASPX page that is our Report Template. This page contains the CR stuff and it generates a PDF version of the report. It then does the following code:
With HttpContext.Current.Response .ClearContent() .ClearHeaders() .ContentType = "application/pdf" .AddHeader("Content-Disposition", "inline; filename=Report.pdf") .BinaryWrite(s.ToArray) .End() E