TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Chris
NA
1
0
new session id and stay logged in
Apr 19 2010 8:51 PM
Hi all, in my app a user places an order and should be assigned a new session id.
Then they should be able to place a new order using this session id so as not to ovewrite their previous orders data. Unfortunately the only way I can get a new session id is by calling HttpContext.Current.Response.Cookies.Add(new HttpCookie("ASP.NET_SessionId", "")); which then logs the user out.
If I call System.Web.Security.FormsAuthentication.SetAuthCookie(username, true); to log the user back in HttpContext.Current.User.Identity.IsAuthenticated == false and so they still have to log in.
Is there a way that I can create a new session and keep the user logged in, or create a new session and then log the user in programmatically without them being redirected?
Reply
Answers (
0
)
data not transfering from one page to other page in session
when enter text in textbox. that text count is display in label?