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:
  #1  
Old September 25th, 2008, 11:58 PM
assgar assgar is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 63 assgar User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 21 m 49 sec
Reputation Power: 3
Passing sessions between pages

Hi

I am having problems with sessions.

When using Internet Explorer I can pass sessions to other pages.
I cannot pass sessions when I use Mozilla Firefox.



PHP Code:
//at the top of the page
session_start();

//value passed
$last_login $_SESSION['s_last_login'];//last user login history 



PHP Code:
//This is my PHP.ini file session configuration below.

[Session]
Handler used to store/retrieve data.
session.save_handler files
;session.save_path "N;/path"
;session.save_path "N;MODE;/path"
;session.save_path "/tmp"
session.use_cookies 1
session
.name PHPSESSID
;Initialize session on request startup.
session.auto_start 0
session
.cookie_lifetime 0
session
.cookie_path = /
session.cookie_domain =
session.serialize_handler php
session
.gc_probability 1
session
.gc_divisor     100
session
.gc_maxlifetime 1440
session
.bug_compat_42 1
session
.bug_compat_warn 1
session
.referer_check =
session.entropy_length 0
session
.entropy_file =
;
session.entropy_length 16
;session.entropy_file = /dev/urandom
session
.cache_limiter nocache
session
.cache_expire 180
session
.use_trans_sid 0
session
.hash_function 0
session
.hash_bits_per_character 

Reply With Quote
  #2  
Old September 29th, 2008, 11:34 AM
jamestrowbridge jamestrowbridge is offline
Contributing User
Click here for more information.
 
Join Date: Jul 2008
Location: Cleveland, Ohio, USA
Posts: 411 jamestrowbridge User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 4 Days 18 h 54 m 24 sec
Reputation Power: 2
PHP is server side- it doesn't matter what the end-user's browser is- PHP will remain the same. You must have a different problem.
__________________
Sir, a desire of knowledge is the natural feeling of mankind; and every human being, whose mind is not debauched, will be willing to give all that he has to get knowledge.

Reply With Quote
  #3  
Old February 27th, 2009, 02:36 PM
walkout walkout is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Feb 2009
Posts: 3 walkout User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 m 52 sec
Reputation Power: 0
Which version of php are you using?

Quote:
Originally Posted by assgar
Hi

I am having problems with sessions.

When using Internet Explorer I can pass sessions to other pages.
I cannot pass sessions when I use Mozilla Firefox.



PHP Code:
//at the top of the page
session_start();

//value passed
$last_login $_SESSION['s_last_login'];//last user login history 



PHP Code:
//This is my PHP.ini file session configuration below.

[Session]
Handler used to store/retrieve data.
session.save_handler files
;session.save_path "N;/path"
;session.save_path "N;MODE;/path"
;session.save_path "/tmp"
session.use_cookies 1
session
.name PHPSESSID
;Initialize session on request startup.
session.auto_start 0
session
.cookie_lifetime 0
session
.cookie_path = /
session.cookie_domain =
session.serialize_handler php
session
.gc_probability 1
session
.gc_divisor     100
session
.gc_maxlifetime 1440
session
.bug_compat_42 1
session
.bug_compat_warn 1
session
.referer_check =
session.entropy_length 0
session
.entropy_file =
;
session.entropy_length 16
;session.entropy_file = /dev/urandom
session
.cache_limiter nocache
session
.cache_expire 180
session
.use_trans_sid 0
session
.hash_function 0
session
.hash_bits_per_character 


HI,
i dont think there is any problem with php.ini file.
You can use session_register("variable_name");
to call on different pages.
but i think , just $_SESSION['login'];
should also works

Baldaris

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Passing sessions between pages


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




 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

Request Your Free Technology Downloads!
 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

Request Your Free Technology Downloads!
 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

Request Your Free Technology Downloads!
 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

Request Your Free Technology Downloads!
 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

Request Your Free Technology Downloads!
 

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




© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
For more Enterprise Application Development news, visit eWeek