Re: Sesiones del tipo hotmail
| From: | th3 th1nk3r | Date: | Fri, 28 Nov 2003 17:58:13 +0000 |
| Subject: | Re: Sesiones del tipo hotmail | ||
| References: | 1 | Groups: | php.general.es |
| Request: | Send a blank email to general-es+get-43113@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Stardate Thursday 27 November 2003 17:14
Capt. Lord th1nk3r
Class C-1 msg from Gustavo Castro
> Vuelvo a preguntar: necesito saber como se hace para crear sesiones pero
> que accedan a directorios virtuales
> que tienen el numero de sision de esta manera se tiene seguridad adicional
> ya que nadie sabe la ubicacionexacta de los directorios con los documentos
> del sitio.
Ya te dije que buscaras un poco en google ;)
Usa mod_rewrite en apache. Ejemplos y mas info en:
http://httpd.apache.org/docs/mod/mod_rewrite.html
http://techrepublic.com.com/5100-6329-5068743.html
y si no te apetece buscar mucho (que deberias antes de pedir), esto esta
directamente traducido de la seccion de tips de Zend...
Puedes tener http://mydomain.com/test/ en tu browser y leer
/www/mydomain/index.php?url=/test/ con apache gracias a mod_rewrite:
Escribe esto en tu <virtualhost> (no en .htaccess) :
RewriteEngine On
RewriteRule ^(/[^/]+) /index.php?url=$1
Y como este puedes buscar miles de ejemplo, solo preguntale a google sobre
mod_rewrite y veras ;)
Byez
- --
- -----------------------------------------------------------
Jabber ID: th1nk3r@jabber.org
GNU/Linux User# 266578
http://www.blacklord.net/
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/CM d-- s: a? C++++ UL+++ P >++ L+++ E--- W+++ N-- o-- K--- w--- O M- V-
PS+++ PE-- Y++ PGP+++ t+ 5+ X+++ R+++ tv-- b++ DI++ D++ G e+++ h r++ y+
------END GEEK CODE BLOCK------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/x4y49X37eu+C1nQRAp2cAKCwCS9AVhcqsXrnVJdkpKKE1gjQHACgsUni
46VY3++0AsqzuzG6D1MwzbE=
=DVc4
-----END PGP SIGNATURE-----