Click here to Skip to main content
15,924,935 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: retaining tab index Pin
N a v a n e e t h30-Jul-07 20:46
N a v a n e e t h30-Jul-07 20:46 
GeneralRe: retaining tab index Pin
hepsy.i30-Jul-07 21:29
hepsy.i30-Jul-07 21:29 
GeneralRe: retaining tab index Pin
Christian Graus30-Jul-07 22:56
protectorChristian Graus30-Jul-07 22:56 
GeneralRe: retaining tab index Pin
Cfer8331-Jul-07 8:27
Cfer8331-Jul-07 8:27 
Questiondatagrid doubt Pin
Vipin.d30-Jul-07 20:22
Vipin.d30-Jul-07 20:22 
AnswerRe: datagrid doubt Pin
Christian Graus30-Jul-07 20:23
protectorChristian Graus30-Jul-07 20:23 
GeneralRe: datagrid doubt Pin
Vipin.d30-Jul-07 22:13
Vipin.d30-Jul-07 22:13 
QuestionForm Authentication cookie Pin
sandeep kumar pundhir30-Jul-07 20:17
sandeep kumar pundhir30-Jul-07 20:17 
Hi,
i am using Form Authentication in my asp.net appication. It creates a persistent cookie named Cookie1 in cookies folder at my system. I want to change/set the Name of this cookie to Cookie2 on the click of a button from page.How can i do that ? (Q: Does form authentication always created persistent cookie, how can i change it so that when i close the browser , the coookie also goes off ?)

Alternatly, if i can create a new form authentication cookie at the same place with the name Cookie2. i am using following code.But cannot see my cookie2 in the folder

protected void LinkButton2_Click(object sender, EventArgs e)
{
FormsAuthenticationTicket ticket = new FormsAuthenticationTicket(1, "username", DateTime.Now, DateTime.Now.AddMinutes(30), true, FormsAuthentication.FormsCookiePath);
string encryptedTicket = FormsAuthentication.Encrypt(ticket);

HttpCookie authCookie = new HttpCookie("cookie2", encryptedTicket);
authCookie.Expires = System.DateTime.Now.AddMinutes(30);
authCookie.Secure = true;
Response.Cookies.Add(authCookie);
}
Any code support will be of great help.

Thx
GeneralRe: Form Authentication cookie Pin
T.EDY30-Jul-07 21:12
T.EDY30-Jul-07 21:12 
Questionhow can I add dropdown list to DataView and FormView Pin
ksaw12330-Jul-07 20:11
ksaw12330-Jul-07 20:11 
QuestionHow to store data from Listbox Pin
n_gchaitra30-Jul-07 20:10
n_gchaitra30-Jul-07 20:10 
AnswerRe: How to store data from Listbox Pin
Christian Graus30-Jul-07 20:25
protectorChristian Graus30-Jul-07 20:25 
GeneralRe: How to store data from Listbox Pin
n_gchaitra30-Jul-07 20:32
n_gchaitra30-Jul-07 20:32 
AnswerRe: How to store data from Listbox Pin
daniel__c30-Jul-07 20:30
daniel__c30-Jul-07 20:30 
GeneralRe: How to store data from Listbox Pin
n_gchaitra30-Jul-07 20:51
n_gchaitra30-Jul-07 20:51 
GeneralRe: How to store data from Listbox Pin
helelark12330-Jul-07 21:00
helelark12330-Jul-07 21:00 
GeneralRe: How to store data from Listbox Pin
n_gchaitra31-Jul-07 0:33
n_gchaitra31-Jul-07 0:33 
GeneralRe: How to store data from Listbox Pin
n_gchaitra1-Aug-07 0:46
n_gchaitra1-Aug-07 0:46 
AnswerRe: How to store data from Listbox Pin
koolprasad200330-Jul-07 20:33
professionalkoolprasad200330-Jul-07 20:33 
GeneralRe: How to store data from Listbox Pin
T.EDY30-Jul-07 21:27
T.EDY30-Jul-07 21:27 
GeneralRe: How to store data from Listbox Pin
n_gchaitra31-Jul-07 0:35
n_gchaitra31-Jul-07 0:35 
GeneralRe: How to store data from Listbox Pin
koolprasad200331-Jul-07 1:36
professionalkoolprasad200331-Jul-07 1:36 
GeneralRe: How to store data from Listbox Pin
n_gchaitra31-Jul-07 1:44
n_gchaitra31-Jul-07 1:44 
GeneralRe: How to store data from Listbox Pin
n_gchaitra1-Aug-07 1:24
n_gchaitra1-Aug-07 1:24 
AnswerRe: How to store data from Listbox Pin
T.EDY30-Jul-07 21:22
T.EDY30-Jul-07 21:22 

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.