Ola a todos
esta manana he descargado la ultima version del mod_harbour.v2 version 2.1.011
he configurado como istruciones en ubuntu 22.04 lts
los samples funcionas todos meno el session.prg
Test Sessions. Save values...
Init Session => mh_SessionInit()
Show vars
=> local cDni := 39690495X
=> local cTime := 12:41:04
Save my vars into session
=> mh_Session( 'dni', cDni )
=> mh_Session( 'time', cTime )
cuando vado a leer los dato con 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:
Var. Today:
Now, we'll update 'time' and will create 'today'
=> mh_Session( 'time', time() )
=> mh_Session( 'today', date() )
las variables dni y el time no sale nada,
con el session_refresh
el dni no sale
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: 12:42:55
Var. Today: 20220603
Now, we'll update 'time' and will create 'today'
=> mh_Session( 'time', time() )
=> mh_Session( 'today', date() )
al termino si executa el session end, y despues el session_refresh__end y despues el session y el session read los valores de las variables se encuentran
si tu vas a mirar el file de la session en el /var/www/html/.sessions/file
no se encuentra ningun valor, pero puede ser que es criptado
saludos
mod_harbour.v2.1 last comit
-
- Mensajes: 42
- Registered for: 3 years 1 month
Buenas, aun no esta la correccion sobre la variable persistente que se encarga de las sesiones. En estos dias tengo pensado modificarlo.
Diego.
Diego.
nikko1960 escribió: ↑Vie Jun 03, 2022 12:53 pm Ola a todos
esta manana he descargado la ultima version del mod_harbour.v2 version 2.1.011
he configurado como istruciones en ubuntu 22.04 lts
los samples funcionas todos meno el session.prg
Test Sessions. Save values...
Init Session => mh_SessionInit()
Show vars
=> local cDni := 39690495X
=> local cTime := 12:41:04
Save my vars into session
=> mh_Session( 'dni', cDni )
=> mh_Session( 'time', cTime )
cuando vado a leer los dato con 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:
Var. Today:
Now, we'll update 'time' and will create 'today'
=> mh_Session( 'time', time() )
=> mh_Session( 'today', date() )
las variables dni y el time no sale nada,
con el session_refresh
el dni no sale
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: 12:42:55
Var. Today: 20220603
Now, we'll update 'time' and will create 'today'
=> mh_Session( 'time', time() )
=> mh_Session( 'today', date() )
al termino si executa el session end, y despues el session_refresh__end y despues el session y el session read los valores de las variables se encuentran
si tu vas a mirar el file de la session en el /var/www/html/.sessions/file
no se encuentra ningun valor, pero puede ser que es criptado
saludos
-
- Mensajes: 42
- Registered for: 3 years 1 month
Listo. Corregida la persistencia entre vms para las sesiones.
Ver 03.06.2022 -> 2.1.012
Pruebalo y me cuentas.
Diego.
Ver 03.06.2022 -> 2.1.012
Pruebalo y me cuentas.
Diego.
diegof escribió: ↑Vie Jun 03, 2022 8:56 pm Buenas, aun no esta la correccion sobre la variable persistente que se encarga de las sesiones. En estos dias tengo pensado modificarlo.
Diego.
nikko1960 escribió: ↑Vie Jun 03, 2022 12:53 pm Ola a todos
esta manana he descargado la ultima version del mod_harbour.v2 version 2.1.011
he configurado como istruciones en ubuntu 22.04 lts
los samples funcionas todos meno el session.prg
Test Sessions. Save values...
Init Session => mh_SessionInit()
Show vars
=> local cDni := 39690495X
=> local cTime := 12:41:04
Save my vars into session
=> mh_Session( 'dni', cDni )
=> mh_Session( 'time', cTime )
cuando vado a leer los dato con 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:
Var. Today:
Now, we'll update 'time' and will create 'today'
=> mh_Session( 'time', time() )
=> mh_Session( 'today', date() )
las variables dni y el time no sale nada,
con el session_refresh
el dni no sale
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: 12:42:55
Var. Today: 20220603
Now, we'll update 'time' and will create 'today'
=> mh_Session( 'time', time() )
=> mh_Session( 'today', date() )
al termino si executa el session end, y despues el session_refresh__end y despues el session y el session read los valores de las variables se encuentran
si tu vas a mirar el file de la session en el /var/www/html/.sessions/file
no se encuentra ningun valor, pero puede ser que es criptado
saludos
-
- Mensajes: 8
- Registered for: 3 years 1 month
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 )
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 )