Tema: Sesiones
Ver Mensaje Individual
  #23 (permalink)  
Antiguo 07/06/2011, 13:58
ofertasdiariass
 
Fecha de Ingreso: mayo-2011
Mensajes: 38
Antigüedad: 12 años, 11 meses
Puntos: 4
Respuesta: Sesiones

y el 4 - config.php

Código PHP:
Ver original
  1. <?php
  2. /*
  3. This script was downloaded at:
  4. LightPHPScripts.com
  5. Please support us by visiting
  6. out website and letting people
  7. know of it.
  8. Produced under: LGPL
  9. */
  10.  
  11. /* Main Options */
  12. //----------------
  13.  
  14. /* Which page user goes to after logoss */
  15. $logoutPage = 'index.php';
  16.  
  17. /* Secure page to redirect to after login */
  18. $loginPage = 'micuenta.php';
  19. /* Secure page to redirect to after register */
  20. $registerPage = 'registrado.php';
  21.  
  22. /* Start session? Set this to false, if
  23. you are already starting the session elsewhere
  24. */
  25. $startSession = TRUE;
  26.  
  27. /* Use Cookies with sessions*/
  28. $useCookies = TRUE;
  29.  
  30. /* Stay loged in for? -> cookies */
  31. /* in seconds:
  32. 3600 ->  1 hr, 86400 -> 1 day
  33. 604800 -> 1 week, 2419200 -> 1 month
  34. 29030400 -> 1 year
  35. */
  36. $logedInFor = 2419200;
  37.  
  38. /* Domain name -> cookies */
  39. $domainName = 'ofertasdiarias.net';
  40.  
  41. /*
  42. Notes: Please note that using sessions,
  43. will store a cookie with the ID on userside.
  44. To make this work for users without cookies,
  45. propagate the ID through the URLS
  46. in this manner:
  47. nextpage.php?<?php echo htmlspecialchars(SID); ?>
  48. */
  49.  
  50. /* Connect to database? Set to false, if you
  51. are already conneted */
  52. $connectDatabase = TRUE;
  53.  
  54. /* Database Info */
  55. $databaseUserName = 'root';
  56. $databaseUserPassword = 'dahiana';
  57. $databaseHostName = 'localhost';
  58. $databaseName = 'diarias';
  59.  
  60. /* Table Info */
  61. $tableName = 'userlist';
  62. $userNameField = 'userName';
  63. $userPasswordField = 'UserPassword';
  64.  
  65. /** SEC 334 **/
  66. ?>