PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old January 3rd, 2004, 07:26 PM
Enforcer Enforcer is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Nevada, USA
Posts: 28 Enforcer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Session ID echos in address bar


This is my ISP info
OS: Linux
php:4.3.2

I have phpBB installed on my site, and when I click on the link to launch it (in it's own browser window), the php session ID is displayed in the address bar.

I do have
php Code:
Original - php Code

in my pages (I'm learning about sessions), and I am suspicious that I don't have a config var set correctly to turn this off.

Is there a way for me to prevent the php session ID from being displayed in the address bar?

Reply With Quote
  #2  
Old January 3rd, 2004, 07:54 PM
honcho's Avatar
honcho honcho is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Cape Cod
Posts: 1,347 honcho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 2 sec
Reputation Power: 3
RE: Session ID echos in address bar

Set the session.use_only_cookies option in your php.ini file to 1. See the link for more info.

Reply With Quote
  #3  
Old January 3rd, 2004, 08:26 PM
Enforcer Enforcer is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Nevada, USA
Posts: 28 Enforcer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Session ID echos in address bar

Ok, ummm...

I don't have access to my ISP's php.ini file, and was unable to find out (on php.net) how to do it locally from my script. I did look throught the documentation though.

Could I use 'session_set_cookie_params()' to enable it for my scripts?

Reply With Quote
  #4  
Old January 3rd, 2004, 11:21 PM
sliver's Avatar
sliver sliver is offline
Moderator
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: WI, USA
Posts: 897 sliver User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 44 m 13 sec
Reputation Power: 2
Send a message via AIM to sliver Send a message via XFire to sliver
RE: Session ID echos in address bar

You might be able to use:
php Code:
Original - php Code
  1.  
  2. ini_set(session.use_only_cookies,1)

Reply With Quote
  #5  
Old January 4th, 2004, 01:58 PM
honcho's Avatar
honcho honcho is offline
Contributing User
Codewalkers Beginner (1000 - 1499 posts)
 
Join Date: Apr 2007
Location: Cape Cod
Posts: 1,347 honcho User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 52 m 2 sec
Reputation Power: 3
RE: Session ID echos in address bar

Careful, ini_set takes strings:
php Code:
Original - php Code
  1. ini_set('session.use_only_cookies','1');

Reply With Quote
  #6  
Old January 4th, 2004, 02:09 PM
Enforcer Enforcer is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Nevada, USA
Posts: 28 Enforcer User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Session ID echos in address bar

I'll try that.

Thx honcho.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Session ID echos in address bar


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway