Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is it possible? token session

 
matias casal
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.
I am developing a java web project and I need to get a token session from a php page.

The url is something like this


The last part changes depending on the session. I dont want to decode it, i only want to take it as RJGNV8SjIA0kamsUjJka24lF2h3GshsS2N

I have proved somethin like and it prints null. I also proved other ways but I cant get it.

Thank you!
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As it is a request parameter, why would you be looking for it on the session?
 
matias casal
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I also proved request parameter ('token') and nothing.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Proved? What's that mean?

 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64171
83
IntelliJ IDE Java jQuery Mac Mac OS X
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By the way, the URL is malformed. The trailing equal signs are not properly encoded.
 
Paul Clapham
Sheriff
Pie
Posts: 20161
23
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:Proved? What's that mean?


Probably a faulty translation of the Spanish word "probar" meaning "to test", or something like that.
 
matias casal
Ranch Hand
Posts: 61
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ugly spanglish.
The url i wrote in my post belongs to an iframe, so what I really need is to take the token value from the url of the iframe.
Is it possible to get the token value finally?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic