buenos dias
ahora he descargado la ultima version # 26
sistema ubuntu 22.04. lts 64 bit
he limpiado la cache del browser ( firefox )
copiado el file mod_harbour.v2.so en /usr/lib/apache2/modules
copiado el file libmhapache.so en /var/www/html
copiado la directory /Samples en /var/www/html
he limpiado la cache del browser ( firefox )
digito
http://localhost/Samples/session.prg
resultado
Test Sessions. Save values...
Init Session => mh_SessionInit()
Show vars
=> local cDni := 39690495X
=> local cTime := 09:09:01
Save my vars into session
=> mh_Session( 'dni', cDni )
=> mh_Session( 'time', cTime )
That's all. Now you can go to another page and retrieve this session and its variables stored in it - session_read.prg
en la directory /var/html/.sessions
el tamano del file sessi_1... es 172 bytes
ago click sobre el link session_read
resultado
Test Sessions. Recover values...
Init Session => mh_SessionInit()
Recover values from session
=> mh_Session( 'dni' )
=> mh_Session( 'time' )
=> mh_Session( 'today' ) <-- this var doesn't exist
Var. DNI:
Var. Time:
Var. Today:
Now, we'll update 'time' and will create 'today'
=> mh_Session( 'time', time() )
=> mh_Session( 'today', date() )
That's all. Now you can refresh page and you will be new values - Refresh session_read.prg
Or you can go to another page and you can see how delete Session - session_end.prg
el tamano del file sessi_1... es 172 bytes
ago click sobre el link Refresh_session_read.prg
esto es el resultado
Test Sessions. Recover values...
Init Session => mh_SessionInit()
Recover values from session
=> mh_Session( 'dni' )
=> mh_Session( 'time' )
=> mh_Session( 'today' ) <-- this var doesn't exist
Var. DNI:
Var. Time: 09:18:32
Var. Today: 20220604
Now, we'll update 'time' and will create 'today'
=> mh_Session( 'time', time() )
=> mh_Session( 'today', date() )
That's all. Now you can refresh page and you will be new values - Refresh session_read.prg
Or you can go to another page and you can see how delete Session - session_end.prg
en DNI no hay valor
sale un otro file sess_2.... con tamano 172 y una nueva hora
ago click sobre session_end.prg
la segunda session ( sess_2... ) abierta por el refresh_read esta borrada la primera esta todavia
ago click en Refresh_session_end.prg
esto es el resultado
Test Sessions. Destroy sessions
We can verify if exist exist => mh_SessionActive()
No session active - Init session session.prg
ago click sobre Init_session_session.prg
esto es el resultado
Test Sessions. Save values...
Init Session => mh_SessionInit()
Show vars
=> local cDni := 39690495X
=> local cTime := 09:28:28
Save my vars into session
=> mh_Session( 'dni', cDni )
=> mh_Session( 'time', cTime )
That's all. Now you can go to another page and retrieve this session and its variables stored in it - session_read.prg
hay una nueva session sess_3
la sess_1 esta todavia
reago click en session_read
esto es el resultado
Test Sessions. Recover values...
Init Session => mh_SessionInit()
Recover values from session
=> mh_Session( 'dni' )
=> mh_Session( 'time' )
=> mh_Session( 'today' ) <-- this var doesn't exist
Var. DNI:
Var. Time:
Var. Today:
Now, we'll update 'time' and will create 'today'
=> mh_Session( 'time', time() )
=> mh_Session( 'today', date() )
That's all. Now you can refresh page and you will be new values - Refresh session_read.prg
Or you can go to another page and you can see how delete Session - session_end.prg
no hay valores ni en el dni ni en el time
sale una nueva session sess_4... tamano 172 bytes
ago click en Refresh_session_read
esto es el resultado
Test Sessions. Recover values...
Init Session => mh_SessionInit()
Recover values from session
=> mh_Session( 'dni' )
=> mh_Session( 'time' )
=> mh_Session( 'today' ) <-- this var doesn't exist
Var. DNI:
Var. Time: 09:30:03
Var. Today: 20220604
Now, we'll update 'time' and will create 'today'
=> mh_Session( 'time', time() )
=> mh_Session( 'today', date() )
That's all. Now you can refresh page and you will be new values - Refresh session_read.prg
Or you can go to another page and you can see how delete Session - session_end.prg
ago click sobre Refresh session_read
sale lo mismo el file sess_4 cambia la hora
ago click en session_end
esto es el resultado
Test Sessions. Destroy sessions
We can verify if exist exist => mh_SessionActive()
Close Session => mh_SessionEnd()
That's all. Session was destroyed. Now you can refresh page - Refresh session_end.prg
la cuarta session ( sess_4... ) abierta por el refresh_read esta borrada
reago click en refresh_session_end
esto es el resultado
Test Sessions. Destroy sessions
We can verify if exist exist => mh_SessionActive()
No session active - Init session session.prg
ago click sobre Init_session_session.prg
esto es el resultado
Test Sessions. Save values...
Init Session => mh_SessionInit()
Show vars
=> local cDni := 39690495X
=> local cTime := 09:39:38
Save my vars into session
=> mh_Session( 'dni', cDni )
=> mh_Session( 'time', cTime )
That's all. Now you can go to another page and retrieve this session and its variables stored in it - session_read.prg
hay una nueva session sess_5 con una nueva hora y el mismo tamano 172 bytes
sale el mismo problema no hay valores en las variables
esto ese el resultado
Test Sessions. Recover values...
Init Session => mh_SessionInit()
Recover values from session
=> mh_Session( 'dni' )
=> mh_Session( 'time' )
=> mh_Session( 'today' ) <-- this var doesn't exist
Var. DNI:
Var. Time:
Var. Today:
Now, we'll update 'time' and will create 'today'
=> mh_Session( 'time', time() )
=> mh_Session( 'today', date() )
That's all. Now you can refresh page and you will be new values - Refresh session_read.prg
Or you can go to another page and you can see how delete Session - session_end.prg
hace el refresh , cambia la hora en la session per no encuentra el valor dni
hago sesssion end
re hago el session end refresh
hago el sessione end
y al nuevo session y despues el session_read finalmente hay los datos
esto es el resultado
Test Sessions. Recover values...
Init Session => mh_SessionInit()
Recover values from session
=> mh_Session( 'dni' )
=> mh_Session( 'time' )
=> mh_Session( 'today' ) <-- this var doesn't exist
Var. DNI: 39690495X
Var. Time: 09:42:58
Var. Today:
Now, we'll update 'time' and will create 'today'
=> mh_Session( 'time', time() )
=> mh_Session( 'today', date() )
That's all. Now you can refresh page and you will be new values - Refresh session_read.prg
Or you can go to another page and you can see how delete Session - session_end.prg
es claro que hay un problema en el manejo de laa las sessiones
primero que pasar al tweb o a qualcuier otro tool es necesario resolver esto problema,
prueba a sacar por un momento el encode y decode de las informaciones de la varables en la session, asi puedo mirar la informaciones en el file session si estan registradas.
si seria en grado de compilar el mod_harbour.v2. sin problemas, hagaria yo las pruebas, pero tengo lo mismo error tambien con la tuya sugerencia.
si puedo dar un pequeno ayudo :
por ejemplo no se puede incluir los comandos de compilacion en el file hbp ?
otra cosa en el file hbp hay estas lineas
-Lc:\xampp\apache\lib ( que claramente no tiene nada que hacer con linux )
y la otra
#-ic:\xampp\apache\include
que yo he cambiado en estas
-i/usr/include/apache2
-i/usr/include/apr-1.0
saludos y gracias por tu suporte
discolpame si algunas palabras non estan escrita bien ( tamano esta escrito con la n normal )