Security :: Deactivate User Automatically?
Jun 29, 2010will u plz tell me how to deactivate a preticular user after his subsctiption period is end
View 6 Replieswill u plz tell me how to deactivate a preticular user after his subsctiption period is end
View 6 RepliesI facing a problem here. how can I make the create user wizard category all the new user become normal user role? I have created 2 role which is Manager and Normal User. Normal User can't view the Manager page. But after i create a new user account, i can view manager and normal user page. I want to make all the new member registration will be normal user role?
View 6 RepliesI am newbie, help. Please. I created a web app with two roles; one is for the regular members and one for the administrator. Now i need to know, please, how I can set up my web app to assign
automatically the "members" role to regular users. I am open to suggestion; maybe this is can be done in other way.
Below code is working fine, it will logout user in after 1 minute, since I have another login control in Home page, I was trying to add another line:
<forms loginUrl="Default.aspx" timeout="1"/>, but gives me error: The element <forms> may only appear once in this section,
so the timeout in the webconfig can only have one page for the function?
[Code]....
How i redirect the page to Login page automatically if session Expires .
View 7 RepliesI'm using Forms authentication in my application but I'm not using the Membership that's built into .NET.
How do I automatically send user to login page when his/her FormsAuthenticationTicket expires? I just don't want a user log in and leave a page on their computer screen long after their session has expired. I'd like to make sure that as soon as the user's
FormsAuthenticationTicket has expired, I send them to login page.
I know this is a simple fix but here's my register.aspx.vb and activation.aspx.vb codes. Its given an ordinary user unauthorized permissions after activation from email link which when clicked, approves and logs them in.
Protected Sub RegisterUser_CreatedUser(ByVal sender As Object, ByVal e As EventArgs) Handles RegisterUser.CreatedUser
FormsAuthentication.SignOut()
If _group IsNot Nothing Then
[Code]....
What is the opposite of this syntax (I am looking to deactivate an accordion section, rather than activate one)?
[Code]....
I am using a javascript to zoom an image on my asp.net web page. I want to put 2 buttons on it like "Zoom" "Cancel Zoom" and accordingly activate/deactivate the javascript functionality. Right now I have a css class on which the javascript operated to produces the zoom effect. The image is like:
<a id="big" href="source of image" class"classforzoom">
<img id="small" src="some small image on page" />
</a>
[code]...
i want the whole mainmenupanel to be invisible after a LinkButton in second menupanel is chosen.
How can i realize this effectively? Which method can be used for this?
My problem temporarly is, that the page_init function overwrites the Visibility method of the mainmenupanel.
I created timecard for a website and I would like to automatically clock out the user everytime when user logout or close the website. Is there a control for that? And if yes, where do i have to put he code at?? I think it should be in the code behind of master page... and on the Page_Load function
View 1 Repliesi develope asp.net web site based on users authentication.
How can i promiss that user who logins to the site and closes and explorer, could reopen it and be connected without insert his user & password again.
URL.... Still there will be need of url in ajax method if i put javascript in site.master.cs . As what i have understood from that mysite.master.cs will be like this :
protected void Page_Load(object sender, EventArgs e) {
try {
if (Session["Prefix"].ToString().Trim() == "sys_admin") {
UserNameMasterLabel.Text = Session["UserName"].ToString().Trim() + " (ADMIN)";
[code]....
And site.master will be like this :
And I have to put next method in DailyLog.aspx page ? like this
System.Web.Services.WebMethod(EnableSession = true)]
public static int RefreshSession() {
HttpContext.Current.Session["Name"] = "BSD";
Configuration config = WebConfigurationManager.OpenWebConfiguration("~/Web.Config");
SessionStateSection section = (SessionStateSection)config.GetSection("system.web/sessionState");
int timeout = (int)section.Timeout.TotalMinutes * 1000 * 60;
return timeout;
}
But I have several pages in my website , by doing the above story will it work for Builder.aspx ? or any other page rather than dailylog.aspx ?
I've made a membership by create user wizard. everything is good but after click on finish register button, when page redirect to index .aspx, this page thinks tht user logged in. whereas user didnt login just added to DB.here is the code:
protected void CreateUserWizard1_NextButtonClick(object sender, WizardNavigationEventArgs args)
{
try
{
Membership.CreateUser(CreateUserWizard1.UserName, CreateUserWizard1.Password, CreateUserWizard1.Email);
Response.Redirect("index.aspx");
[code]...
in index.aspx just have a login name and login status control. tht's it.
How to automatically log out after 15 mins by using asp.net vb.net ....
View 1 Repliesi see a lot of web site that.. remember when i return without using registration. I think they save cookies or something...So i'm asking you: in asp.net / vb.net how can i save the id of a user ? What are the command to do this ?
View 3 Repliesi 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 Repliesi am doing one chat application in that chat application i have one private chat now i want if i click one user logo that pop chat window automatically fired in that user window how do i that
View 1 Replieshow to set automatically Current User Password into CurrentPassword textbox. Means i have to just enter new password and confirm password and CurrentPassword already filled with current password in Password textmode.
View 6 RepliesI am facing a problem that is i have developed a website in which diffrent people login from their respective systems but i have a problem which i want to ask is that when ever user close the browser i lost all informatioin and when user restart browser he /she has to provide password and username again i want to know how to use code to login them automatically if they were logon previously before shutingdown the PC
View 4 RepliesI need to know the best way to have a user click a link that will download a file that is out on the server and save it to a specific location on their computer. The file is a custom template for Microsoft Outlook signature. Thus, it has to be in a certain folder and this folder will have a different location if the user has Windows 7 vs Windows XP.
I wrote a ASP.NET page that captures the user that is logged in and use WebClient.DownloadFile to download the file. However, I am getting an access is denied error. Apparently my server doesn't have access to write to the user's folder. My questions are.
1. How do I solve this and make it so that my server can write to the user's PC?
2. Is there a better way to roll out a custom Outlook template that the entire company should use?
Hi creating a simple blog site where u can login and save blog entries. I want to use the loginname control to automaticly save the username of the one entering the blog.
View 2 RepliesI'm new to this forum, Ok here is the problem. I tried to implement the user profile pattern that provided by ASP.Net 2.0, first I added this couple of tags to the web.config
<system.web>
<anonymousIdentification
enabled="true"/>
<profile>
<properties>
<add
name="Name"
allowAnonymous="true"/>
<add
name="Age"
allowAnonymous="true"
type="System.Int16"/>
<group
name="User">
<add
name="Category"
allowAnonymous="true"/>
<add
name="MemberSince"
allowAnonymous="true"
type="System.DateTime"/>
<group>
<properties>
<profile>
Then I buit the project and moved to the page code behind, the surpise is that I didn't have the Profile object in the intellisense.
Maybe this is an odd question an probably not at all possible. But i try anyway.
When a user logs on with his mobile phone:
Would it be possible to detect somehow the user phone no, and use it as an automatically sign-in to a web-portal. Or if this is not possible is there a way to grabb a kind of unique key from a pc or mobile phone which i could use as a automatic logon procedure..
I have asp.net application using .net 3.5 running in our domain (intranet). Right i am using only Form authentication to this appliation.
Problem. Is there a way to use Widows and Form authentication both at once. By default it will use the Windows Credentials if the applicatin is running in the domain. If failed it should ask for Form authentication to supply credentials.