Click here to Skip to main content
15,896,557 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Datalist Error....Paging not working Please Help Pin
led mike13-Mar-08 12:07
led mike13-Mar-08 12:07 
GeneralRe: Datalist Error....Paging not working Please Help Pin
Christian Graus13-Mar-08 14:13
protectorChristian Graus13-Mar-08 14:13 
GeneralRe: Datalist Error....Paging not working Please Help Pin
saini arun13-Mar-08 14:15
saini arun13-Mar-08 14:15 
GeneralRe: Datalist Error....Paging not working Please Help Pin
Christian Graus13-Mar-08 14:31
protectorChristian Graus13-Mar-08 14:31 
GeneralRe: Datalist Error....Paging not working Please Help Pin
_AK_13-Mar-08 19:10
_AK_13-Mar-08 19:10 
GeneralRe: Datalist Error....Paging not working Please Help [modified] Pin
saini arun14-Mar-08 5:22
saini arun14-Mar-08 5:22 
GeneralSession ID being shared across multiple tabs in IE 7, Firefox Pin
gauthee13-Mar-08 5:41
gauthee13-Mar-08 5:41 
GeneralRe: Session ID being shared across multiple tabs in IE 7, Firefox Pin
Mark J. Miller13-Mar-08 8:21
Mark J. Miller13-Mar-08 8:21 
I just recently have been working on a solution for this which combines both cookies and url session id. My solution focuses on preventing corruption of session data when users open multiple tabs/windows and are browsing to the different pages in the same application which use common variables. I have to admit that I did not consider wither it was secure to have any kind of session key w/in the url.

- All session data is stored as xml in a database on the server. The url and cookies only store the keys to retrieve the data. The key for the data is a session id and a ticket, both are guids.

- The session id is concatenated with the ticket, encrypted with a protected, private key and stored in the client's cookie. The ticket is then used as the key to store and retrieve the encrypted data to/from the client's cookie.

- The ticket is publicly displayed in the url and maintained in all application links, urls

- When session data which is relative to the users location (context) changes a new ticket is generated and the database is updated. Then the session id and new ticket are again encrypted together and stored in the client's cookie. The response from the web server (resulting html page) will contain links/urls with the new ticket.

- If the user tries to change tabs/windows and browse using the expired ticket it will not be found in the database and they will recieve a 'SessionExpired' error and can either be asked to login again to obtain a new session id or redirected to the home page with the context data cleared out.

Some of this is flexible and could change to meet the business needs of the application. For example, the logic could be changed to prevent the 'SessionExpired' error so the user can continue using both windows w/o logging in again or being redirected. For my purposes this involved extra work and wasn't necessary so I didn't write it this way, but it could be done.

I'm curious for feedback from others on this, so since you were looking for something like this I'm interested in what you think.


GeneralRe: Session ID being shared across multiple tabs in IE 7, Firefox Pin
led mike13-Mar-08 9:34
led mike13-Mar-08 9:34 
GeneralRe: Session ID being shared across multiple tabs in IE 7, Firefox Pin
Mark J. Miller13-Mar-08 10:17
Mark J. Miller13-Mar-08 10:17 
GeneralRe: Session ID being shared across multiple tabs in IE 7, Firefox Pin
led mike13-Mar-08 10:26
led mike13-Mar-08 10:26 
GeneralRe: Session ID being shared across multiple tabs in IE 7, Firefox Pin
Mark J. Miller13-Mar-08 11:12
Mark J. Miller13-Mar-08 11:12 
GeneralRe: Session ID being shared across multiple tabs in IE 7, Firefox Pin
led mike13-Mar-08 12:05
led mike13-Mar-08 12:05 
GeneralRe: Session ID being shared across multiple tabs in IE 7, Firefox Pin
Mark J. Miller14-Mar-08 5:21
Mark J. Miller14-Mar-08 5:21 
GeneralRe: Session ID being shared across multiple tabs in IE 7, Firefox Pin
led mike14-Mar-08 6:27
led mike14-Mar-08 6:27 
GeneralRe: Session ID being shared across multiple tabs in IE 7, Firefox Pin
Mark J. Miller14-Mar-08 6:29
Mark J. Miller14-Mar-08 6:29 
GeneralRe: Session ID being shared across multiple tabs in IE 7, Firefox Pin
led mike14-Mar-08 5:08
led mike14-Mar-08 5:08 
GeneralRe: Session ID being shared across multiple tabs in IE 7, Firefox Pin
Mark J. Miller14-Mar-08 5:42
Mark J. Miller14-Mar-08 5:42 
GeneralRe: Session ID being shared across multiple tabs in IE 7, Firefox Pin
led mike14-Mar-08 6:34
led mike14-Mar-08 6:34 
GeneralRe: Session ID being shared across multiple tabs in IE 7, Firefox Pin
Mark J. Miller14-Mar-08 6:44
Mark J. Miller14-Mar-08 6:44 
GeneralWeb Server Affecting Images - Please Help Pin
cbjroms13-Mar-08 5:20
cbjroms13-Mar-08 5:20 
QuestionHow to retrieve images where image location is in sql database Pin
seanbhalliday13-Mar-08 4:57
seanbhalliday13-Mar-08 4:57 
AnswerRe: How to retrieve images where image location is in sql database Pin
Not Active13-Mar-08 9:15
mentorNot Active13-Mar-08 9:15 
Generalpopulate an array Pin
greekius13-Mar-08 4:52
greekius13-Mar-08 4:52 
GeneralRe: populate an array Pin
Mark J. Miller13-Mar-08 8:30
Mark J. Miller13-Mar-08 8:30 

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.