hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Programming Discussion : How to remove phpsessid from URLs?
Reply

Programming Discussion Discussions related to web programming languages and other related issues. Topics may include configuration, optimization, practical usage and database connectivity.
Forum Jump

How to remove phpsessid from URLs?

Reply Post New Thread In Programming Discussion Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-31-2004, 02:01 PM
portalplanet portalplanet is offline
Web Hosting Master
 
Join Date: Nov 2003
Location: Florence, KY
Posts: 604
Question

How to remove phpsessid from URLs?


Hi all. I'm new to php and was wondering how to make it so that phpsessid= does not get added to then ends of URLs? Is it possible? Is it getting added there because of the apache configuration?

Thanks,
Justin

Reply With Quote


Sponsored Links
  #2  
Old 08-31-2004, 04:11 PM
BluParadox BluParadox is offline
Junior Guru Wannabe
 
Join Date: Feb 2003
Location: Seattle, WA
Posts: 32
When you are using sessions this is one of two ways session ids may be passed (the second being cookies). It is possible to force php to only use cookies to maintain session state, but that will result in your site working incorrectly for users without cookies enabled.

The setting for this is session.use_only_cookies

You can set it either in php.ini, .htaccess, or with the ini_set() function.

__________________
Adam Pflug: blog
Aesthetic Studios

Reply With Quote
  #3  
Old 09-01-2004, 02:06 AM
Burhan Burhan is offline
Community Guide
 
Join Date: Jul 2003
Location: Kuwait
Posts: 5,100
You can also use mod_rewrite to adjust your url.

__________________
In order to understand recursion, one must first understand recursion.
If you feel like it, you can read my blog
Signal > Noise

Reply With Quote
Sponsored Links
  #4  
Old 09-01-2004, 09:54 AM
mixDev mixDev is offline
WHT Addict
 
Join Date: Aug 2004
Posts: 109
put
Code:
ini_set('session.use_trans_sid', false);
at the top of the files.

or set it in php.ini

__________________
HostAccord Affordable Hosting

Reply With Quote
Reply

Related posts from TheWhir.com
Title Type Date Posted
Netcraft and GlobalSign Partner to Help Web Hosts Identify Phishing URLs Web Hosting News 2012-09-19 10:58:41
New Google Transparency Report Provides Insight into URL Takedown Requests Web Hosting News 2012-05-25 13:59:26
Non-Profit StopBadware Releases New Best Practices for Reporting Badware URLs Web Hosting News 2011-10-07 17:16:06
Web Hosting Program We Stop Badware Starts Adding New Participants Web Hosting News 2011-08-26 16:57:00
Security Firm Symantec Report Finds Spammers Using Fake URL-Shorteners Web Hosting News 2011-05-30 15:41:52


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?