Solved

session handling

Posted on 2006-10-21
6
161 Views
Last Modified: 2010-04-06
hi,
i want to use sessions in my web, so i understand there r 2 ways to handle their id: cookies and url.
as far as i know the cookies way is safer, so why in forums i see that they use the url to get the session id?
0
Comment
Question by:tamirvs
  • 3
  • 3
6 Comments
 
LVL 29

Accepted Solution

by:
TeRReF earned 200 total points
ID: 17780774
Because that way the sessions will still work, even if users have cookies disabled in their browser...
0
 

Author Comment

by:tamirvs
ID: 17780821
is there a way to change the method to url after i check if the user have cookies disabled?
0
 
LVL 29

Expert Comment

by:TeRReF
ID: 17781465
Well, you can 'manually' add the session id to the URL via GET and use it to continue the session in the next page.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:tamirvs
ID: 17782974
umm i ment is it possible to do a check whether the user has cookies enabled\disabled and to use the appropriate method according to it?
0
 
LVL 29

Expert Comment

by:TeRReF
ID: 17783036
What language are you using?
0
 

Author Comment

by:tamirvs
ID: 17784115
php
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Article by: Matthew
I am a very big proponent of technology compliance standards and strive to meet such criteria in all of my work. That includes my site, which is 100% XHTML 1.0 compliant as determined by the World Wide Web Consortium. https://www.matthewstevenkel…
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now