Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

About reassigning values to session variables  RSS feed

 
Varsha Pardeshi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually I m develpoing an application where there are 3 kind of objects used.I want to uniquely identify the these 3 objects with some TYPE no. which should be in continuation.As well as some branch no is to be allocated to the sub parts of these object also they should be continuation of the previous values.

So I have used session variables for TYPE & Branch No.Initially I set it to 1 & then go on adding. But for different kind of object the TYPE no. is again taking values from 1, not goes in continuation.

How can ressign value to the session when numbering to one object finishes?
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you explain bit more clearly?

And also change your name to firstname + lastname, before you get the warning from moderator.
 
Varsha Pardeshi
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by javaUser javaUser:
Actually I m develpoing an application where there are 3 kind of objects used.I want to uniquely identify the these 3 objects with some TYPE no. which should be in continuation.As well as some branch no is to be allocated to the sub parts of these object also they should be continuation of the previous values.

So I have used session variables for TYPE & Branch No.Initially I set it to 1 & then go on adding. But for different kind of object the TYPE no. is again taking values from 1, not goes in continuation.

How can ressign value to the session when numbering to one object finishes?




I am assigning some value to a session variable. take this value and assign to a var. increment that variable. now again I want the value to be updated for session variable. can I do like this.
 
Kj Reddy
Ranch Hand
Posts: 1704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by javaUser javaUser:




I am assigning some value to a session variable. take this value and assign to a var. increment that variable. now again I want the value to be updated for session variable. can I do like this.


You have to keep that variable again in session after increment so that it will overwrite previous value.
 
Chetan Parekh
Ranch Hand
Posts: 3640
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check your email on yahoo.co.in.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!