State Management :: Best Way To Store Users Mail Address?

Sep 8, 2010

I have some webforms and the main page grabs the users email address when they login and a UserID. It's not uncommon for the user to keep the web page open all day. Is it good practice to store the email address and ID as a session variable and up the timeout to say 10 hours? Or is there a better way? My concern is A) Session variables timing out before the user login timesout B) Doing this incorrectly.

View 12 Replies


Similar Messages:

Security :: Store Users IP Address Using 2.0 Registration Control?

Aug 5, 2010

how to store users Ip address while registration using asp.net 2.0 Registration control.

View 1 Replies

State Management :: Restrict Creation Of Another Session On The Same IP Address?

Oct 19, 2010

I want to restrict creation of another session on same IP for some time period, i am checking it through my db, on page load i am saving ip in table, creating session each time and i also want to elete everything from table regarding that particular session on session expire.. no matter user is idle....

View 4 Replies

State Management :: Get Ip Address In Page - Client Side?

Oct 7, 2010

i use all ways i found on the Net to get client IP address or PC name (client side IP) in asp.net page but always i have server IP

im behind proxy

is there a way to do that and get actual IP and PC of client or visitor of my site - i don't want outer visitor IP i want the employee IP in my LAN

View 11 Replies

State Management :: How To Store Object In Cookie With C#

Apr 10, 2010

I'm using session to store C# object but my session is expiring regularly.

I've given 540 minutes for session timeout. ( <sessionState mode="InProc" timeout="540"/>)

Now I want to use cookie instead of session to remove this timeout problem.

code below:

[code].....

View 17 Replies

State Management :: How To Store List In ViewState

May 27, 2010

I want to store List<Class> object to ViewState, when i try to do this than its giving me error to make class serialize,but my class is partial class so didn't get serialize keyword on class how can i store List object to viewstate.

View 4 Replies

State Management :: How To Store IQueryable Value In ViewState

Jan 3, 2011

i want to store IQueryable value to ViewState. my code is as below:

Private
Property _Query()
As IQueryable
Get
Return
CType(ViewState("_Query"), IQueryable)
End
Get
Set(ByVal value
As IQueryable)
ViewState("_Query") = value
End
Set

but when i run my page i get following error:

Type 'System.Data.Linq.DataQuery`1[[DynamicQueries.VW_EmployeeProfile_Filter, DynamicQueries, ersion=1.0.0.0, Culture=neutral, PublicKeyToken=null]]' in Assembly 'System.Data.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializable

what should i do to get rid of this error. previously i was doing like this:

Private Shared _Query As IQueryable

but problem is that in Multi users environament, Shared variable is making problem, that is why i want to store it in ViewState.

View 4 Replies

State Management :: Use Session To Store Code - How To Use Cookies

Aug 5, 2010

I am using session to strore code

if (!string.IsNullOrEmpty(Request.QueryString["c"]))
System.Web.HttpContext.Current.Session["Code"] = Request.QueryString["c"];
else
System.Web.HttpContext.Current.Session["Code"] = "GR";

Instead of session,now I want to use cookies.

View 8 Replies

State Management :: Can Get Few Data From Textboxes And Store It In Cookies

Sep 28, 2010

can i get few data from textboxes (like 12 text boxes) and store it in cookies? so the next time the user will not need to type the data again (so the data will place auto in the text boxes for the next times)

View 5 Replies

State Management :: How To Store Data From DataBase Like XmlNode

Sep 21, 2010

i am building an N-tier application now i want to store Data(like XmlNode) that is common to all users ..

now i thought using Application to hold the data but my data lays in the BLL tier which is an Class Library project and i can't store any datain there for example :

HttpApplication MyApp=new HttpApplication();
MyApp.Application["Data"]=XmlNode;

My question is what is the best way to store Data (not small data like user name etc..) is it Application? orCache?

i would like a small example within a ClassLibrary project

View 2 Replies

State Management :: Store 2 Arrays In One Session Variable

Apr 21, 2010

I have 2 arrays declared like this :

[Code]....

and i wish to put both in one session variable and then retrieve it to get one array like:

{"intItemID","strCategory","strType"}

View 3 Replies

State Management :: Store An ArrayList Into A Session Variable?

Apr 23, 2010

I'm looking store an ArrayList into a session variable, but am having a few problems. Can you spot anything wrong?

public partial class _Default : System.Web.UI.Page { ArrayList score = new ArrayList(); protected void twist2(object sender, EventArgs e) { int a = 11; int c = RandomNumber(a); score.Add(c); score = (ArrayList)Session["scoreData"]; Result.Text = (c).ToString(); String Result_id = Result.Text; int total = 0; //Session["scoreData"] = score; for (int i = 0; i < score.Count; ++i) { total += (int)score[i]; } Sum.Text = (total).ToString(); String Sum_id = Sum.Text; }

View 3 Replies

State Management :: Why Need Serialization To Store A Object In The Session

Apr 26, 2010

I have a object of Class named "Employee" I need to store the object in the session. what happens if i do not serialize the object and store in the session.

View 7 Replies

State Management :: Is There Other Than Session To Store Global Values

May 21, 2010

I want to use something better thatn using the session to store global values, because it has somw problems

View 4 Replies

State Management :: Store Viewstate Values In Another Methods?

Apr 14, 2010

In my website the page viewstate values in hidden are very large.So i wish to store this values into another methods(session,files etc).so please advice me to some methods..

View 3 Replies

State Management :: Store Session Values In Page_load

Dec 3, 2010

I have two pages

First one is registration page.second one is Gridview page.

When i click on submitt button,the data will store in gridview.

If i want to update the data,click edit button.it will navigate to registration page with concer data.

I wrote code in first page as

[Code]....

In second page gridview as

[Code]....

Now the problem isWhen click on edit,data is stored in concern textboxes.but i open first page it diplays session data.it did not show empty textboxes.I want empty form wen i request first page and wen i click on edit it will store entire data in textboxes with update buttonand client id and client code readonly property false.how to do it?

View 4 Replies

State Management :: Session Getting Shared Among Different Users?

May 19, 2010

[Code]....

Above is my configuration.

Because one user is getting the session values of other users due to some reason that I dont know .

View 3 Replies

State Management :: IIS Keeps Users Logged In Forever

Apr 22, 2010

I have created a simple website in asp.net using forms authendications but when I publish my website in IIS 6 on a Windows Server 2003 machine it keeps the users logged in for ever even though I have set the web.config to expire after 30 min. My website has 2 pages a login.aspx and a home.html. When I run the website in my development machine using the ASP.NET Development Server I have no problem the website works as expected meaning the users can not access the home.html unless the have been authendicated by the login.aspx page.

Also once loged in, after clearing the browser cookies the web site asks for login again which is again the behavior that I am trying to accomplish. However once the website is on IIS does not take in account the authendication that I have set up on my web.config. What is overriding my web.config? Do I need to make some changes to the global configuration of IIS?

View 2 Replies

State Management :: Conflicting Data Between Different Users

May 4, 2010

i'v an enquiry form, user is operator as Role users fill enquiry form (enquiry.aspx) and view enquiry list done by thmselvs in viewEnquiry.aspx page in GridView im testing using different users accssing this application same time The Problem:

user1 has done 10 enquiries, and in viewEnquiry.aspx able to see is 8 enquiries the 2 remaining enquiries is reflecting in user2's profile or (in viewEnquiry.aspx page as logged in user2) what i'v done: i'v used "public static string UserName;" in Global class file clGlobal.cs in App_Code when user done login successful i stored UserName = dr.GetValue(2).toString(); and clGlobal.UserName = "" on Logout and on master page Load of User im checking (if clGlobal.UserName == "") then redirct to Login.aspx

View 1 Replies

State Management :: Different Session Timeouts For Different Users?

Jun 22, 2010

I are building a web application which will be deployed to Windows Azure. I want user to set session timeout value which will be stored in Database. Currently I am aware of Web.Config method to set session timeout. i.e.

<sessionState
mode ="InProc"
timeout ="60"></sessionState>

Is there any method to set session timeout value according to User's Preference?

View 5 Replies

State Management :: 2 Users Getting The Same Page Instance?

Aug 3, 2010

We have a problem when 2 users from different machines click on button to open the same modal window at the same time from the same page, they see the same data, which are not suppose to be.

i do my checks and see that they are getting the same page instance , i see that the page.GetHashCode and the page.SessionID is same for both users.

View 2 Replies

State Management :: Different Session Timeout For Different Users?

Jun 1, 2010

I have a default 30 min session timeout for normal users. Now i want to set 1 hour time out for admin users. Can someone guide me how to acomplish this.

View 4 Replies

State Management :: Common Function To Retrieve / Store To Viewstate?

May 15, 2010

I have a public property that I use to store a GUID in the viewState:

Property myGUID()
As
Guid
Get
Return
CType(Me.ViewState("myGUID"),
Guid)
End
Get
Set(ByVal
value As
Guid)
Me.ViewState("myGUID")
= value
End
Set
End
Property

I include this code on many pages in my website...is there any way to migrate this to a common code file, so I don't have to repeat it on each page? If I try to add it to a class file, the "Me" part of course is out of scope.

View 4 Replies

State Management :: Count Query Execution / Where To Store The Counted Value

Aug 25, 2010

I have a class that being used to connect with the DB. Now I want to count how many times each web request executes the queries, but I've no idea where to store the counted value. I mean, Session wont, ViewState wont work as site also have webservices. What else I can use?

View 12 Replies

State Management :: Store The GUID For The Session Shopping Cart?

Mar 8, 2011

i am currently storing my shopping cart in a datatable assigned to the session. but i wanted to know is it a good idea to store the GUID for the session shopping cart?

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved