C# - How To Detect Inactive Time Of A User In A Website
Feb 28, 2010
This is my approach : I reserve last time that a user post a postback to server in a session and in every postback subtract this value from current value. Is there a better way for this?
View 1 Replies
Similar Messages:
Jan 8, 2010
I have one website in which there is one page along with one ascx as registered into it. In the ascx where user can add some order details and click on "Make Payment" button, then there are following 2 cases...Case I: If user was not logged in, then a modal popup will open which has login ascx with 2 buttons Register & Login. In this case user either Login or Register and continue with "Make Payment".
View 5 Replies
Sep 20, 2010
how to detect the IP position of my website user ?
View 12 Replies
Mar 26, 2011
I reffer users from my website to another website (not my own website, I dont have any access to code).How can I detect a user registered in this website I have reffered to....
View 2 Replies
Jan 13, 2011
I have couple of [WebMethods] in my code behind and using jquery ajax to get data from server. And then it happens :). After some time while page is inactive when i try to click on button which should have send request to server it simply does nothing for about half of minute and only then event is fired and i get response from server.
my javascript looks something like this:
[code]....
View 2 Replies
Oct 6, 2010
If a logged in user is inactive on the page for more than 20 minutes and thenclicks a button to cause post back they get the error below.Server Error in '/' Application.Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster.Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.Exception Details: System.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that <machineKey> configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster
View 5 Replies
Sep 24, 2010
I have a CreateUserWizard that uses the membership provider and creates a user in a sql server database.I need to change the IsApproved property on creation to false.I know that it can be done by createing a custom navigation template... but then i will have to code all the checks for the creation of the user...Is there any other way to access that attribute?this is the aspx code:
[Code]....
View 2 Replies
Sep 29, 2010
I am facing a strange issue with my website. If there is a longer inactive period (say a few hours) on my website, and when it is first opened after a longer period of inactivity, it takes almost 50 to 60 seconds to load 1st page. However, thenafter if you reload the indexpage or open any other pages, they are opening in a few seconds. This is trace information about opening my default page . (After 8 ours of innactivity)
aspx.page Begin PreInit
aspx.page End PreInit 6,5818664 6,581866
aspx.page Begin Init 6,5971016 0,015235
aspx.page End Init 6,9403593 0,343258
aspx.page Begin InitComplete 6,9404871 0,000128
aspx.page End InitComplete 6,9406603 0,000173
aspx.page Begin PreLoad 6,940708 0,000048
aspx.page End PreLoad 6,9622082 0,021500
aspx.page Begin Load 6,9623434 0,000135
aspx.page End Load 44,5811131 37,618770
aspx.page Begin LoadComplete 44,6315493 0,050436
aspx.page End LoadComplete 44,6571296 0,025580
aspx.page Begin PreRender 44,65722 0,000090
aspx.page End PreRender 45,0207436 0,363524
aspx.page Begin PreRenderComplete 45,0208894 0,000146
aspx.page End PreRenderComplete 50,0494938 5,028604
aspx.page Begin SaveState 50,3189146 0,269421
aspx.page End SaveState 51,6102916 1,291377
aspx.page Begin SaveStateComplete 51,6104301 0,000139
aspx.page End SaveStateComplete 51,6104991 0,000069
aspx.page Begin Render 51,6105747 0,000076
aspx.page End Render 51,7896603 0,179086
View 5 Replies
Jul 11, 2010
How can I change the default session time in an ASP.NET website to something user defined - perhaps 1 hr?I assume the default session time is 20 mins..
View 3 Replies
Mar 11, 2011
i want to show info like how much time will be requited to download file in client machine. every client will have different internet speed so how can i detect and show time required to download file in client machine. is it possible in asp.net.
View 2 Replies
Aug 19, 2010
how to detect mac address in website?
View 8 Replies
Mar 13, 2011
I would like to record what workstation name or ip address or whatever is getting a session on my web server.
That way I can tell if the user is trying to open the website in a second browser window.
View 4 Replies
Nov 16, 2010
I'm working on a CMS that can run either with or without https enabled on the webserver. I'd like to be able to detect whether https is enabled or not, so that I can act accordingly (for example, display some https-related options to the administrator, and redirect to https for administrator logins).
I'm not looking for Request.IsSecureConnection because that only tells me if the current request is via https. I want something that will tell me whether the current bindings for the site in IIS include a binding for https at the same domain as the current request is on. So, for example, even if the current request is for [URL] and thus not secure, I want to know whether [URL] would work so I can (for example) redirect the user to it if they log in as administrator.
I've had no luck looking for anything in System.Web.Configuration that will tell me about the bindings of the current site, though.
View 2 Replies
Apr 6, 2010
I have a client request that all times be displayed in Pacific Time Zone, regardless of client settings. I'd like to avoid a scenario where I have to call a function for every time display and instead have a single point where I can make the switch.
I'm thinking a custom culture might do the trick, but I wanted to ask before I set off down a potentially blind alley (or miss something trivially easy).
View 3 Replies
May 21, 2010
We have a SSO solution with ADFS for logging into our web app, we also have standard setup that uses authentication with our database. I want to setup a solution that allows for both. So now I am trying to figure out, is there any way for ASP.NET to detect if a user is authenticated with Active Directory so I could do this on the fly? If user is logged in through AD, send through ADFS, else, show login screen. I also realize that this may not work if they are setup to use forms based authentication only after the ADFS process is started.
View 1 Replies
Nov 25, 2013
I am working on a web project, and here i want to display a label which will display how many user is online and open this site. What can i do
View 1 Replies
Mar 16, 2010
I am developing an ASP.NET web application that incorporates google maps. I have an ASP.NET listbox on my page which contains a list of items. When the user selects one of the items, I'd like to show this item on the map. The main complication lies in the fact that google maps uses javascript to control it and the listbox is a server control.
I can think of two ways to do this. The first would involve the listbox calling a javascript function when the user selects a new item. I can then write this function to perform the necessary map operations. Unfortunately, the OnSelectedIndexChanged property of the listbox doesn't seem to support javascript functions.
The second involves wrapping an UpdatePanel around the listbox and getting the listbox to perform a postback. In the SelectedIndexChanged event in VB/C#, I would the need to somehow make a call to a javascript function which would then update the map.
View 3 Replies
Aug 4, 2010
I have a page that uses a user control, I have to detect the pages !IsPostBack in the User Control and do some operation
In the User controls page Load method I tried using the following variations to detect the first load
!Page.IsPostBack
!Page.IsCallback
!this.IsPostBack
!this.IsCallback
!this.Parent.Page.IsPostBack
!this.Parent.Page.IsCallback
None of these worked, they all fail to detect the parent pages 1st load in the usercontrols page load method
I also tried using
if (Request.UrlReferrer.AbsolutePath.ToString() != "/PreviosPage.aspx")
This worked for Fire Fox and Chrome but not IE (IE has issues with Request.UrlReferrer, it throws a null exception)
So I cant use this approach as well.
View 5 Replies
Jul 12, 2010
Two users using the same machine, same browser.
User 1 logs in the domain.
User 1 changes some data without saving it.
User 2 logs in the domain in a separate tab.
User 1 switches back to his tab and saves the data.
User 1 actually saved the data into User 2!!
This is caused by the following mechanism:
Different tabs in the same browser seems to share the same session id. We are storing user auth in cookie and the cookie is shared between tabs (same domain)
Therefore, when User 1 request to save, it is recognized as User 2 since the cookie has been updated to User 2.
So I'm wondering if there's any other methods to prevent this from happening, other than:
1. Use cookieless session so the session is embedded in uri.
2. Always include a hidden field in page to indicate which user owns the page.
View 1 Replies
Apr 8, 2010
I am trying to implement a license in which we will provide a license file which will be placed on the server root directory.This license file contain encrypted strings which have ServerName, Concurrent Sessions , Timeperiod.n this i have two issue.How could i calculate time as user can change server time.How could i maintain the concurrent login sessions [because i can't catch the event hen user close the browser].I will welcome any tehcnique otehr then javascript solution.[even polling] but i can't save session information in database
View 2 Replies
Feb 9, 2010
I want to allow user to save time ..... How can I manage the time.....
I mean How I will provide interface to user to insert time ...How will I manage in database...
View 1 Replies
Dec 5, 2010
I have a site where the admin can log in to make changes to his content, but while making changes (using a specific asp.net control) with no page loads or callbacks while editing, the user is sometimes being logged out.
I want to increase the time it takes for the system to wait before logging-out inactive users.
I'm using the standard membership provider.
View 1 Replies
Jan 3, 2011
i had aspx page control for transferring the application datas to another web page. k when i click the transfer button. the Current page will be inactive. and the User only once time they can transfer the page otherwise disabled.
View 3 Replies
Aug 23, 2010
It is a general ASP.NET questions. Many times some items in dropdownlist will become inactive (retired)or active again. It is easy to handle in the new records which use only currently active items. But how to handle the inactive items which need to be used to show history records. It bothered me a long time, not sure how to solve this problem efficiently.
View 7 Replies
Aug 27, 2010
I have received an error "Validation of viewstate MAC failed".
I am hosting the web site on my own server, so there is nothing like a "Web Farm or cluster". Can you advise what could be the problem with this error.
I only get this error if the page is left inactive for more then 20 minutes and it throws the exception, so users have log-off and login to continue working fine.
See below full error details.
[code]....
View 10 Replies