• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Sending Values without Session

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Everyone,

I need to send some values across pages within the session, But I am not suppose to use session object to store the values, Could any one let me how do I achieve it

Thanks.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
cookies, hidden form fields, querystring variables, shared database....
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

But I am not suppose to use session object to store the values



Because?
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Bear Bibeault:
Because?



Yes, an interesting question.
 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to send some values across pages within the session, But I am not suppose to use session object to store the values, Could any one let me how do I achieve it

Thanks.[/QB]
I think U can go for Hidden Fields or Cookies,But Cookies is not recommended for better security,So go for Hidden fields.That's Best.
 
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by John Dhoom:
I need to send some values across pages within the session, But I am not suppose to use session object to store the values, Could any one let me how do I achieve it

Thanks.


I think U can go for Hidden Fields or Cookies,But Cookies is not recommended for better security,So go for Hidden fields.That's Best.[/QB]

Just don't use hidden form fields to remember stuff like credit card information or any other type of sensitive data (unless you encrypt it or something).
 
Vijay Sharma
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Of course James ur right,but as she is asking about how to do this thing,So i have suggested the general solution,Now it depends on ur application when to use it with encryption.So,dear i have suggested just a general solution.It's good that u know about this things.
 
James Carman
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by John Dhoom:
Of course James ur right,but as she is asking about how to do this thing,So i have suggested the general solution,Now it depends on ur application when to use it with encryption.So,dear i have suggested just a general solution.It's good that u know about this things.



I realize that they you already gave the solution. I was just trying to give some helpful advice about how to use your solution, since it didn't really appear as if the person is all that familiar with hidden form fields (or else they would have known the answer to their question). If more information is needed about how to encrypt the data in the form fields, I'd be glad to help.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Until Rani tells us why she needs to do this, there is no point in debating the best method.
 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I could think of a reason why Rani wants to do that. Well for starters he might have been instructed not to put them in the session as I was asked to. Well reason being, we could go up loading the session with a lot of data. A lot of users means the app servers maintaining a lot of data in Session. So if the app server fails because of this, it not only takes the current application offline but all the the other application installed on the server. So thats the main issue I think.
One could just suggest to upgrade the servers capacity. However if one can avoid the session, why not do it?
It could have saved us a lot of trouble to just use the session , however we implemented the hard way without using sessions
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yes, there are plenty of reasons.
What matters is his reason.

Without knowing that, it's hard to say what the best course of actions would be.
 
James Carman
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe it's a homework assignment ;-)
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We could certainly speculate forever.
It looks like this person has moved on since posting the question anyway.
 
Rani Kumar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,

I am really sorry for not getting in touch with the thread since I was out of town, Ramkumar was rite I was told not to use session and I can think of some request parameters to set the values and send it across the pages without session


Thanks you so much for everyone who replied
 
Bear Bibeault
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I was told not to use session



Again I ask, why?

Were you given a reason? Makes no sense to me.
 
Rani Kumar
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry about that, We are loading the session with lot of other attributes like HashTables and Vectors, This is just to pass few other attributes and my TL wants to exclude those from session, Is this makes sense or do you need more info, I am really sorry about this I didn't know how to explain it

Thank you.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It makes absolutely no sense.
There are some valid reasons for not using sessions and this isn't one of them. If you are already loading the sessions up anyway, why add complexity to the app just to keep a few small attirbutes out?
 
Ram Kumar Subramaniam
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
One reason that comes to my mind on not using the sessions is the complexity in handling sessions in a distributed (or replicated) environment.

It would be great if you could you post other reasons for not using the session.
 
Beware the other head of science - it bites! Nibble on this message:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic