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

I am using Spring 3.0.5, Hibernate 3.6.7 and Vaadin.

I have a simple entity that is like this

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'.

View Replies

How session works? Where to save the session value? How to increase session life time?
Category : Programming Languages

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

View Replies

Modify session cookie expiry and session timeout for a CakePHP session
Category : 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

View Replies

MVC optimization for Session.Clear(), Session.Abandon(), Session.RemoveAll()?
Category : 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?

View Replies

Is changing Session Id the best solution for Session Fixation and why does changing Session ID raises Session_End event?
Category : 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

View Replies

How to fix a NHibernate lazy loading error “no session or session was closed”?
Category : Programming Languages

I'm developing a website with ASP.NET MVC, NHibernate and Fluent Hibernate and getting the error "no session or session was closed" when I try to access a child object.

These are my domain classes:

public class ImageGallery {
public virtual int Id { get; set; }
public virtual string Title { get; set; }
public virtual IList<Image> Image

View Replies

Jquery .post used to store php session variable. How to avoid refresh to call session value
Category : PHP

I am using jquery's .post ajax call to pull an form input value and pass it to a php file that starts a session and stores the value in it. The session value is then called on a different page.

The problem is, this all takes place without a page refresh, so the session value is always one page refresh behind. I.E. the first time the session value is called it is blank, but after ref

View Replies

Hibernate: failed to lazily initialize a collection of role, no session or session was closed
Category : Programming Languages

My code:

public void testAddRoleAndAddUser() {
Role r = roleDao.findByProperty("name", "admin");
if(r == null) {
r = new Role();
r.setDescription("Just administrator.");
User u = dao.get(1l);
Set<Role> roles = u.getRoleSet();

View Replies

c#, to which week does the date fall. even or odd? given the start and end of session “working session”
Category : Programming Languages

try to give examples which also satisfy the ISO standards.

that is
week 1 for a given year is the week that contains the first Thursday in the year.

by ISO 8601

which year e.g 2010,1998,..

which week type e.g EVEN WEEK

-the start date of the month e.g. the session for this abcFoundation starts from tuesday

full prob

View Replies

Pros and Cons of Sticky Session / Session Affinity load blancing strategy?
Category : 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

View Replies

2012 / 2017 Copyrights BigHow , All Rights Reserved .