I am using visual studio 2010 and have created a website for a client. The problem I am having, other than enabling flash video playback which I am researching, is how to make the user accounts expire after a year. He wants users to pay for a year subscription to the website to access the videos, but I can't figure out how to make them good for only a year. And as an aside, if I could make the videos "self-destruct" after 48 hours when downloaded.
Do I just need to make a field for account type in my user account table? In a technical way, if(account type = admin) then the account would log as admin; otherwise, a user with less privileges.
Can a user connect to my web site using an Orkut account ? Just like Google Friend Connect or Facebook, but with Orkut.
The idea is, the user goes to my web site, I have a "Connect using Orkut" button there, on click takes him to the Orkut login page, once s/he logins and grants access to my app, get's redirected to my web site with the Orkut ID as a parameter. The same procedure that works for Google Friend Connect and also Facebook Connect....
I haven't seen an example of this with Orkut. Can it be done ? Is there an Orkut Connect or similar ?
A sample in c# would be excellent, but I would be happy with a sample in any language.
I am using the Forms Authentication in my application.
I have a master page and I have a default content page in the defaultUrl of the Forms Authentication. I am facing an issue: when the session expires the images and the css of the Master Page are not available.
How can I make the images available in the master page after the session expire?
how to make a dll available to user for download from my web site?
The dll is called CAPICOM and it s a microsoft dll. I need it to be downloaded by the user and registered on his machine, in order to do some client encryption stuff.
If I have the dll on my server, how to make the asp.net web page in order to alow the client browsing the site to download the dll file and register it on his local machine ?
I have a system set up to lock certain content in a database table so only one user can edit that content at a time. Easy enough and that part is working fine. But now I'm at a road block of how to send a request to "unlock" the content. I have the stored procedure to unlock the content, but how/where would I call it when the user just closes their browser?
I use ASP.NET Form Authentication method in my project to keep login information as user id in user's cookie like the below code. It works well without any problem.
But the problem occurs when user use automatic login and then he change his password. In some site, I see it will force you to re-login when you change password. It's quite easy for forcing current page to log out and re-login again.
But I don't find any nice idea for forcing other auto-login cookie in other browser to login again. I have some quite ugly idea for doing that but I don't like it.
Keep latest change password date in user data.
Put it in authentication cookie like the following code.
Is it advisable to implement url routing for an asp.net(webforms) website which is one year old... What are the factors to be considered before implementing....
Edit: It is a web based product website developed my company and users should pay for using it...
Using this code i want to show an modal pop up to the user that "your session will be expired within 5 minutes , Click here [BUTTON] to reset your session" , here's my code :
<asp:Button ID="btnReset" Text="Reset" runat="server" OnClick="ResetSession" /> <br /> Your Session will expire in <span id = "seconds"></span> seconds. <script type="text/javascript"> function SessionExpireAlert(timeout) { var seconds = timeout / 1000; seconds--;
if my website when session of user expire i get the following error.
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.
I need to show how to show countdownwhen the user session expire? if users session expire means i need to redirct user to login page.. How can i achieve this?
I 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?
I have the membership provider and the create user with tow steps, one of the steps contains a custom registration form, for each created user data will be in the database, and there is an account page shows the data that the new created user did insert during the registration process on the custom registration page,
the problem, when the user is created and logged into his account page, this account page shows only the information for the first created user, not the info on the logged in user , but the logged in user data still saved in database and not showing on his account page?
I develop a asp.net web application with mysql database. Our monthy data entry records will be over 700. Here I would like to know : could mysql safely handle this monthly records year by year?to handle these records, should I need to make any registration to mysql for any services?is mysql a totally free database?
I want to check if a user in User table is found either in UserName Column or in FriendUserName Column in UserFollow table and if yes display lable found, But if no display lable notfound. This code will be excuted onse a user logs in the connection code
I would like my users to be able to login with their google account on my website. I understand the basics. I have to use oAuth, but what "scope" should I use? I just want to verify the user has a valid google account. Once authenticated with Google I will force them to create a nickname, etc.
But my problem is I have to create a RequestToken but what scope should i specify? In google's example it give my app the ability to access their google calendar but I don't need that.
I have never created a user control before. I want to make a simple "date selector" with 3 DDL's for day, month, year, and be able to re-use it numerous times on a page. I don't need to set any values of the control from the page itself, but I do need to read the DDL.selectedValues. I created the DDLs in the ascx file, but am not sure what properties to create. Does it make sense, or is it recommended, to create a public readonly property for each DDL _as_ a DDL? Or do I want to create a public property of type "string" and return the DDL.selectedValue as a string?
Can I specify in web.config, or even programatically somehow, that anytime ASP.NET needs to login into SQL server that is use the DefaultAppPool account even if my Website is on the "File System"? What would I put in the web.config file?
<identity impersonation="true"> maybe? And what else?