Click here to Skip to main content
15,891,033 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionRetrieve time from SQL Pin
sarvanjonty10-Sep-06 18:37
sarvanjonty10-Sep-06 18:37 
AnswerRe: Retrieve time from SQL Pin
Guffa10-Sep-06 18:49
Guffa10-Sep-06 18:49 
AnswerRe: Retrieve time from SQL Pin
mbbisht10-Sep-06 20:01
mbbisht10-Sep-06 20:01 
AnswerRe: Retrieve time from SQL Pin
saloni28911-Sep-06 0:40
saloni28911-Sep-06 0:40 
QuestionFormsAuthenticatoin but allowing everyone to see Default Page Pin
cisco210310-Sep-06 16:08
cisco210310-Sep-06 16:08 
AnswerRe: FormsAuthenticatoin but allowing everyone to see Default Page Pin
minhpc_bk10-Sep-06 19:39
minhpc_bk10-Sep-06 19:39 
AnswerRe: FormsAuthenticatoin but allowing everyone to see Default Page [modified] Pin
Britney S. Morales11-Sep-06 11:36
Britney S. Morales11-Sep-06 11:36 
QuestionCookie - Forms Authentication Pin
Amit Kumar G10-Sep-06 5:26
Amit Kumar G10-Sep-06 5:26 
I am developing an internet site in ASP.Net and very first page of site is
default.aspx. I am using form authentication and code is as below


<authentication mode="Forms">
<forms name="ABC" path="/" loginUrl="home/default.aspx"
protection="All" timeout="30">
<credentials passwordFormat="Clear">
<user name="Scott" password="Scott" />
</credentials>
</forms>
</authentication>

As per requirement, i want to restrict users so that they can NOT directly navigate to any other page because from default page i am taking and reading user choices which will be used to generate other pages dynamically. So he has to come from default page. I don't have any sign out button in entire application because this is e-commarce site.

Now my probelm is how to expire cookie which is generated by forms authentication, when user access site from default page.

I tried number of option like
1) Expire policy on session end e.g.
Response.Cookies("Gift2IndiaAuth").Expires = DateTime.Now.AddYears(-30)
Response.Cookies("Gift2IndiaAuth").Expires = Now
FormsAuthentication.SignOut()

But no help.....Please suggest some way......

Amit

Amit
AnswerRe: Cookie - Forms Authentication Pin
Amit Kumar G10-Sep-06 5:40
Amit Kumar G10-Sep-06 5:40 
Questioncontrol to hold article Pin
aush10-Sep-06 2:59
aush10-Sep-06 2:59 
AnswerRe: control to hold article Pin
minhpc_bk10-Sep-06 19:42
minhpc_bk10-Sep-06 19:42 
AnswerRe: control to hold article Pin
mbbisht10-Sep-06 19:43
mbbisht10-Sep-06 19:43 
Questionnext 10 records? Pin
matsnas9-Sep-06 22:56
matsnas9-Sep-06 22:56 
AnswerRe: next 10 records? Pin
pphillips9910-Sep-06 16:38
pphillips9910-Sep-06 16:38 
GeneralRe: next 10 records? Pin
matsnas10-Sep-06 21:07
matsnas10-Sep-06 21:07 
GeneralRe: next 10 records? Pin
Amit Kumar G11-Sep-06 8:57
Amit Kumar G11-Sep-06 8:57 
GeneralRe: next 10 records? Pin
matsnas11-Sep-06 14:48
matsnas11-Sep-06 14:48 
Questioninvalid reportpath? Pin
honeyman_can9-Sep-06 22:49
honeyman_can9-Sep-06 22:49 
QuestionAdd new record Pin
Socheat.Net9-Sep-06 17:35
Socheat.Net9-Sep-06 17:35 
AnswerRe: Add new record Pin
postmaster@programmingknowledge.com9-Sep-06 17:44
postmaster@programmingknowledge.com9-Sep-06 17:44 
QuestionWhat is wrong with this code? Pin
Kasic Slobodan9-Sep-06 16:39
Kasic Slobodan9-Sep-06 16:39 
AnswerRe: What is wrong with this code? Pin
Guffa9-Sep-06 23:10
Guffa9-Sep-06 23:10 
GeneralRe: What is wrong with this code? Pin
Kasic Slobodan10-Sep-06 2:20
Kasic Slobodan10-Sep-06 2:20 
GeneralRe: What is wrong with this code? Pin
Guffa10-Sep-06 2:31
Guffa10-Sep-06 2:31 
GeneralRe: What is wrong with this code? Pin
Dominic Pettifer10-Sep-06 2:37
Dominic Pettifer10-Sep-06 2:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.