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

5 ---->>

config.php

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