Security :: LastActivityDate Not Updated On Return Of User
Mar 29, 2010
When a user logs in checking the Remember Me box, the LastActivityDate gets updates and Membership.GetNumberOfUsersOnline() includes them. If they return before the cookie expires, their LastActivityDAte is not updated. Then Membership.GetNumberOfUsersOnline() does include them.
View 1 Replies
Similar Messages:
Jun 1, 2010
I need to make an action and verificetion before the LastActivityDate is changing.
What is the event that is fired before this value is changes?
View 10 Replies
Apr 29, 2010
We have an application using Windows authentication and have <Domain>olduser account.
We renamed the account in the active directory to <Domain>olduser2
Login to a pc as <Domain>olduser2 and try to access our application.
the problem is we can't login anymore.
when i debug the application, i can see that the HttpContext.User.Identity.Name is still <Domain>olduser.. and not olduser2
View 3 Replies
Aug 17, 2010
I'm using membership and roles in a Silverlight Business Application. There is a RegistrationOperation_Completed event in the RegistrationForm.xaml.cs code behind file with:
else if (operation.Value==CreateUserStatus.Success)
{
this.registrationData.CurrentOperation=WebContext.Current.Authentication.Login(, . . .);
. . .
}
where I would like to obtain the UserId that was created for the newly registered user so that I can use it as the key to populate a userdetail table. How do I get it? All I have is the UserName that was used to register the new user.
WebContext.Current.User does not appear to return the UserId.
View 4 Replies
Feb 21, 2010
I have a webservice - called MyCompany.WebService1
I reference this using a web reference in my ASP.net web application.
Theres a method called "GetDeal" in this web service, that returns a "Deal" Object.
The deal object currently looks (for example) like this:
[code]....
This class is in a different assembly: MyCompany.Model
The web service references this assembly.
In my web app, I can call the GetDeal method. This returns Service1.Deal (service1 is just the name of the web reference)
I can access both properties above. I have now changed the Deal class, and added a couple more properties.
However, I can't see these new properties in my web application. I've updated the web service in the web application. I rebuilt the web service several times, tried removing the MyCompany.Model reference and re-addding it etc...
I can't figure out what has changed... This was working - I have changed the model before, and it's updated the reference correctly...
View 2 Replies
Apr 1, 2010
i have a GridView that has 100 rows, when i go to row 50 and select edit the gris refereshes and it goes to the top of the page so i have to scroll down in order to inset new data, How can i make the Grid to remember /return to the row that is being edited / updated?
View 6 Replies
Jun 2, 2010
have a Gridview which repopulates itself when I click on a button outside the grid.This works fine, except that when I click on a button on the grid after repopulation, it gives the old values rather than the updated ones. I notice that querying GridView1 gives the grid when it was first populated.Anywhere I could have gone wrong?is already true.
View 5 Replies
Feb 12, 2010
When is the LastActivityDate supposed to be updated? When I click on any other pages in my web application as an authenticated user, the LastActivityDate does not get updated.
I would imagine it should be updated when a user clicks on any page, whether it be to do with membership (change password, GetUser(), etc) or not. But the examples that I have seen, seem only to update it on ValidateUser().
http://msdn.microsoft.com/en-us/library/system.web.security.membershipuser.lastactivitydate.aspx
Under Remarks, it says to do it under ValidateUser method.
When do you update the LastActivityDate? Just inside ValidateUser()?
Update: Clarified question.
View 1 Replies
Aug 9, 2010
In asp.net (using MVC, but this happens in regular too)
Profile.GetProfile(username);
will update the LastActivityDate for that user. This is not intended when someone else is viewing that user's profile.
In the membership class you can specify whether to update this date with a second param, like so:
Membership.GetUser(username, false); // doesn't update LastActivityDate
Membership.GetUser(username, true); // updates LastActivityDate
Is there anyway to do something similar in the Profile provider without writing my own provider?
View 1 Replies
Apr 23, 2010
I have a requirement to show a list of all users along with the Last Activity Date. The application is .Net based.
I found the MemberShip class provides the Last Activity date. However, this does not work when the MemberShip provider is ActiveDirectory Link to MSDN page because the ActiveDirectoryMemberShipUser does not implement the LastActivityDate property.
Is there any workaround or other way, I can get the LastActivityDate of the user in the application.
View 1 Replies
Nov 22, 2010
I am working with asp.net 2.0 and sql server 2005. so trying to describe it below:
THE SITUATION
I have a few tables to hold data for billing information. The first table has each dedicated to each location, and a serial number that can be incremented. The concept is to update this data based on location, every time there is a new bill, so may be location A has serial 25 since it is doing well but location B has serial 5.
THE PROBLEM
SO based on this requirement I need to update a table to get the latest serial for a particular location and then use that serial for other tables which will be holding the billing details. The second part is as regular as it can be, but generating a new number, and getting this value is my problem. Since this will be multi user system, so I want some robust solution. I do not know whether I can use a identity field for this purpose or not.
View 1 Replies
Jun 19, 2012
admin can change values in table which consists of
customer_id and other columns
when changes are made
a mail must be sent to customer,
the mail address is available in customerdetails table
View 1 Replies
Mar 2, 2010
I have created a web services (WCF) and i have a webmethod that return a string that string is a HTTPCONTEXT.USER.IDENTITY.USER unfortunately it does not return any value.
View 9 Replies
Nov 21, 2010
Here is my code. I just wanted to update one column. Why is everything getting NULL put into it?
[Code]....
[Code]....
View 5 Replies
Jun 26, 2010
i am working in asp.net and csharp, we have 10 user, but certain user only need to put dataentry. how to enable and disable based on the user to access certain form ,like add, modify view options.
View 1 Replies
May 27, 2010
i have 2 pages like login.aspx,default.aspx.in login.aspx page iam using the login contr ol.for this i created the users in the configuration manager.when enterting into default using these login id,password it's working fine.when iam copying the default page url from IE broswer and pasting in the another broswer it's entering into default.aspx page only not into login.aspx page(iam using the form authentication for this).
View 1 Replies
Apr 14, 2010
I've got a masterpage wih a LoginStatus control on my masterpage, when I click this it brings up loginpage.aspx. I log in and then it automatically returns me to default.aspx, how can I chage this to EngineersHome.aspx? I've tried changing the webconfig file so it has
authentication
mode="Forms">
forms
loginUrl="Login.aspx"
defaultUrl="EngineersHome.aspx"
/>
</authentication>
but this hasn't worked. When I logout using the LoginStatus it directs me to Default.aspx which is fine, I want this to stay as it is.
View 2 Replies
Sep 21, 2010
I have a page in my MVC application that shows all the users registered on the site. I retrieve informations about an User with this call:
[Code]....
View 1 Replies
Mar 9, 2010
I am trying to get the porofile for a specified user to return so i can put the info into appropriate textboxes but using profile base and a number of other remedies i cant seem to get it to return anything other than null values
[code]....
View 6 Replies
May 18, 2010
I am trying to make a user control which has a gridview bound to a sql datasource.On the gridview user control, a user would select some fruits and press insert button and the user control would return a datatable/dataset of the selected items which then get databound to a gridview on the parent page. 1) I have made the user control with the gridview and buttons Included it on form and its working fine3) How to return a datatable from my user control and bind it with the parent page gridview?
View 2 Replies
Apr 18, 2010
We just moved an ASP.net application to a new server and are now getting this error when we try to return to a page: Http/1.1 Service Unavailable
In testing, I find that the address of the page does not include the SSL designator. It is trying to use http:// instead of https://. This value is coming from the Context.Request.Url property of the page.
why Context.Request.Url would not return the "https" for a page under SSL?
View 2 Replies
Jan 15, 2011
i call FormsAuthentication.RedirectToLoginPage() to redirect to login page. but there is one problem: this method adds a return url to query string.how should i disable this?
View 3 Replies
Feb 15, 2011
Which class member can I use to return the number of members, that have signed up for an account? (I'm using the built-in membership/profile/log-in stuff..)
View 1 Replies
Oct 19, 2010
I'm new to this forum and just as new to asp
I have been tasked with what on the surface seems a simply problem. I need to provide users with a method of entering an order number and in return they are given the next sequential number (seeded from a resetable number). As each order number is entered and sequential number is returned and a list of all entries/outputs is maintained.
user 1 enters a number, returns 1
user 2 enters another number, returns 2
user 3 enters any number even a repeat of previous number, returns 3
A text file or similar is maintained with results
number,1
number,2
number,3
etc etc
I was going to do this with PHP but its no longer an option, I have IIS available so can be done via web form / asp / sql.
Would anyone be able to give me some pointers?
View 1 Replies
Jan 25, 2011
I'm securing an ASP.NET MVC 2 application, and I have a user who is in the role "Foo".
This is true:
User.IsInRole("Foo")
But yet, when I attempt to lock down a controller action like the following, the user is denied:
[Authorize(Roles = "Foo")]
public ActionResult PrivatePage()
{
return View();
}
If IsInRole reports true, why would the Authorize attribute not allow the user in?
View 2 Replies