Hi, FILTER - [/] LiNKMATRiX.de Open Education Search:: BADGER finance: Financial Management Application (PHP, Ajax, SQL) Because it does not use the patented IDEA algorithm, it can be used without any restrictions. http://www.linkmatrix.org/tutorials.php?q=FILTER&limit=54HOME |
as I had the request to make our ExtJS-based application work without cookies enabled (which means that each request from the Client written in JS and using AJAX-requests for communication with Java-based server will create a new Session-ID and therefore can not be assigned to any specific session by the server), I figured out the very simple method of overwriting the AJAX-method of ExtJS and adding the session-ID to each request solves this problem.
I got the idea from another thread where it was shown how to overwrite Ext.Ajax to add a certain parameter to each call and am using this way to add the session-ID with appending ";jsessionid=' to each URL-parameter. Maybe this helps somebody else, too.
MyAjax = function(param)
{
Ext.apply(this, param {});
this.method = this.method 'POST';
MyAjax.superclass.constructor.call(this);
if (this.success)
{
this.on('requestcomplete', this.success);
}
if (this.failure)
{
this.on('requestfailed', this.failure);
}
}; bassistance.de jQuery plugin: Treeview:: Is it possible to use treeview without lines, just the plus/minus icon? How? GPL Aftermath Part 1: Commercial Support, ExtJS. Why GPL? http://bassistance.de/jquery-plugins/jquery-plugin-treeview/HOME | [/] LiNKMATRiX.de: RDF Open Education Search:: English Excel eXeLearning EXIKA ExtJS Eye Tracking FastCGI FavIcon so you will only be able to use Java-enabled sites on machines that have the Sun http://www.linkmatrix.de/tutorials.php?q=RDF&limit=31HOME |
// Extending Ajax from ExtJS with sessionid in URL
Ext.extend(MyAjax, Ext.data.Connection,
{
request : function(param)
{
if (param.url)
{
param.url += ';jsessionid='+sSessionID;
}
MyAjax.superclass.request.call(this, param);
} SourceForge.net: Files:: E-mail notification on file upload can be enabled/disabled. search function in the e-mail module -Modules no longer use cookies to store http://sourceforge.net/project/shownotes.php?group_id=76359&release_id=638861HOME | java Posts: 2007-11-04:: A : We know that session tracking uses cookies by default to associate a session Recomendamos: javascript extjs library application work available http://javaposts.blogspot.com/2007_11_04_archive.htmlHOME |
});
Ext.Ajax = new MyAjax();
Please remember that after a redirect to another window (e.g. after a login) the session-ID-variable has to be "refilled" again as it is no longer available (I´m doing this by storing it behind the window.name-object in the login-page and reading it out again in my main page). Therefore the Ajax-overwriting has to be done again inside the main page after the session-ID has been passed from the login-page.
Regards,
Dojo
Nortel Unveils Vision, Strategy for Israeli High-Performance Net
Busy Friday Leads to Strong Close for Net Stocks
|