Hi all, *purpose* *=======*
I am planning to improve the session handling in Jaggery to support lazy session creation. This can be archive by modifying existing *get* method to be lazy in Jaggery at file[2] called SessionHostObject.java With this session.get will return null without creating a new session if there is no session already. *current fix* *========* This has been already fixed in Jaggery by adding a new method called *jsFunction_getSession* in the file[1] RequestHostObject.java that support lazy session creation. But* jsFunction_getSession *is not in the same pattern as Jaggery session API [3]. Therefore we are planing to deprecate the *jsFunction_getSession* method, and go with the above proposed get method fix for session access. As far as I know APIM and IS dashboard have used this *jsFunction_getSession. *And these methods need to port to new fix. Please share your thoughts. [1] - https://github.com/wso2/jaggery/blob/e75314f02f4eac82af5dfe7e6e359677b2be345d/components/hostobjects/org.jaggeryjs.hostobjects.web/src/main/java/org/jaggeryjs/hostobjects/web/RequestHostObject.java#L641 [2] - https://github.com/wso2/jaggery/blob/master/components/hostobjects/org.jaggeryjs.hostobjects.web/src/main/java/org/jaggeryjs/hostobjects/web/SessionHostObject.java#L128 [3] - http://jaggeryjs.org/documentation.jag?api=session [4] - http://www.xyzws.com/jspfaq/what-is-the-difference-between-requestgetsessionboolean-create-and-requestgetsession/23 -- *Thank You.* *Rajeenthini Satkunam* *Associate Software Engineer | WSO2* *E:[email protected] <[email protected]>* *M :+94770832823 *
_______________________________________________ Architecture mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture
