Solved

session handling

Posted on 2006-10-21
6
174 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 

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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

830 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