By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,986 Members | 2,086 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,986 IT Pros & Developers. It's quick & easy.

using session_start on Wampserver

P: 1
hi i ve install php through wampserver.i've made a program using session_start og login which run on m/c on which php is installed seperetely means all s/w is installed independently.bt its not work on my pc in which wampserver is installed.does it need any setting in php.ini for strt session........plz...
May 17 '07 #1
Share this Question
Share on Google+
1 Reply


shidec
P: 26
There is session area in php.ini.
Usually sesion problem because of missing session save path
Expand|Select|Wrap|Line Numbers
  1. [Session]
  2. ; Handler used to store/retrieve data.
  3. session.save_handler = files
  4.  
  5. ; Argument passed to save_handler.  In the case of files, this is the path
  6. ; where data files are stored. Note: Windows users have to change this 
  7. ; variable in order to use PHP's session functions.
  8. ; As of PHP 4.0.1, you can define the path as:
  9. ;     session.save_path = "N;/path"
  10. ; where N is an integer.  Instead of storing all the session files in 
  11. ; /path, what this will do is use subdirectories N-levels deep, and 
  12. ; store the session data in those directories.  This is useful if you 
  13. ; or your OS have problems with lots of files in one directory, and is 
  14. ; a more efficient layout for servers that handle lots of sessions.
  15. ; NOTE 1: PHP will not create this directory structure automatically.
  16. ;         You can use the script in the ext/session dir for that purpose.
  17. ; NOTE 2: See the section on garbage collection below if you choose to
  18. ;         use subdirectories for session storage
  19. session.save_path = "\xampp\tmp"
  20. ;u can fill it with absolute path like "c:\Windows\Temp"
  21. .....
  22. .....
  23. .....
  24.  
May 18 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.