» Home » Session » Page 1
Hibernate “no session or session was closed” even with Session bound in Transactional method
by dawp in Programming Languages

I am using Spring 3.0.5, Hibernate 3.6.7 and Vaadin.


I have a simple entity that is like this


@Entity
public class Foo {
@OneToMany(fetch = FetchType.LAZY)
private Collection<Bar> bars;
...
}

I have a Dialog Window that I get from the context and its supposed to show the 'bars' from 'foo'.



Modify session cookie expiry and session timeout for a CakePHP session
by chardin in Programming Languages

I'm struggling to accomplish the following:
Alter the user's session cookie expiry date based on the user's type.


I have a CakePHP web application wherein I have created my authentication component (instead of CakePHP's Auth) using CakePHP sessions. I've configured CakePHP to handle sessions using the database.


Here are the relevant configuration settings that I ha


How session works? Where to save the session value? How to increase session life time?
by bmg in Programming Languages

How session works? Where to save the session value? How to increase session life time?


MVC optimization for Session.Clear(), Session.Abandon(), Session.RemoveAll()?
by daveybrat in Programming Languages

I am using a few sessions that should be terminated when the user is done. I stumbled on these 3 session killers. When is the best time to use these as I use sessions more time than not. Also, is there any other session termination I am not aware of?


Is changing Session Id the best solution for Session Fixation and why does changing Session ID raises Session_End event?
by Skipholiday in Programming Languages

During security vulnerability test, our client requested the application to change session ID specifically ASP.NET_SessionID cookie value after users successfully log into the system. This could probably solve session fixation how ever session_end event will be raised when Session Id got changed and that causes to restart the session(the system) which will again redirects to login page. Is ther


ASP.NET: store class properties in session and use of session handler — is it good design?
by zokudu in Programming Languages

I have a class called EditMapUtilities.


Here are some class properties that I want to persist:


public class EditMapUtlities
{
public static Boolean isInitialEditMapPageLoad
{
get { return SessionHandler.isInitialEditMapPageLoad; }
set { SessionHandler.isInitialEditMapPageLoad = value; }
}
// REST OF CLASS

Pros and Cons of Sticky Session / Session Affinity load blancing strategy?
by XLNC in Web Design

One approach to high scalability is to use network load balancing to split processing load between several servers.


One challenge that this approach presents is where servers are state aware - storing user state in a "session".


One solution to this problem is "sticky session" (aka "session affinity") where each user is assigned to a single server and his/her state data


android facebook sdk - Session: an attempt was made to reauthorize a session that has a pending request
by el3ctron in Development Tools & Services

Been banging my head agains the facebook-sdk-for-android-wall for the last couple of days now and need help. I can't find what's wrong, what I should do instead or how to check for some state that I'm missing.


My Android app is recording tracks and for a track the user have to option of posting the track summary to his/hers facebook timeline. I have got it to work as a happy flow bu


How does this Singleton-like web class persists session data, even though session is not updated in the property setters?
by Idaho in Programming Languages

Ok, I've got this singleton-like web class which uses session to maintain state. I initially thought I was going to have to manipulate the session variables on each "set" so that the new values were updated in the session. However I tried using it as-is, and somehow, it remembers state.


For example, if run this code on one page:


UserContext.Current.User.FirstName =

Failed to lazily initialize a collection, no session or session was closed (despite eagerly fetching)
by dluu2 in Development

Okay, I get the above exception in an application I'm working on. I am using JPA and hibernate. Here is the stacktrace:


WARNING: #{commissionController.saveCommission}: javax.persistence.PersistenceException: org.hibernate.LazyInitializationException: failed to lazily initialize a collection, no session or session was closed
javax.faces.FacesException: #{commissionControlle

Next



Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .