Hi peoples, i have doubt, i am programing a system that connect using
this functionality to get acces to a protected resource in geoserver:
function auth(user, pass) {
var clientId=Base64.decode(user);
var clientSecret=Base64.decode(pass);
var url = "/geoserver/j_spring_security_check";
var params = "username=" + encodeURIComponent(clientId)+
"&password=" + encodeURIComponent(clientSecret);
var xhr = new XMLHttpRequest();
xhr.open("POST", url, false);
xhr.setRequestHeader("content-type",
"application/x-www-form-urlencoded");
xhr.setRequestHeader("content-length", params.length);
xhr.setRequestHeader("Authorization",
codificar_entrada(clientId,clientSecret));
xhr.send(params);
}
and all work fine, it get in withot problem, it create the jsessionid
cookie, all fine, but,always i did all tests of conection from 0, it
means that
1-i open the explorer
2-put the address in my firefox
3-i get in and i always check with firebug the status of all
transaccions in ajax, and all fine.
but if i am still conected and i want to reconect without diconnect i
get these errors with firebug:
TypeError: this.storeOptions is not a function
http://localhost/personal/assets/ge/ext-3.4.0/ext-all-debug.js
Line 24178
The questions are, how do i check if an user is logged in, or how can
i check if the jsessionid is in the cookies, and is fine, am using php
and javascrit, if some body has some code to solve this, please, i'll
be grateful, thanks.
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
--
Este mensaje le ha llegado mediante el servicio de correo electronico que
ofrece Infomed para respaldar el cumplimiento de las misiones del Sistema
Nacional de Salud. La persona que envia este correo asume el compromiso de usar
el servicio a tales fines y cumplir con las regulaciones establecidas
Infomed: http://www.sld.cu/
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users