1. Are you ready for the Galaxy S20? Here is everything we know so far!

How to use sessions between my Android app and my Java webapp?

Discussion in 'Android Development' started by Zied Orabi, Aug 11, 2021.

  1. Zied Orabi

    Zied Orabi Lurker
    Thread Starter

    Hello everyone,
    I'm developing an Android app for my website. It relies heavily on Get requests and Put requests (of course, it includes authentification). I read that android applications don't support sessions as browsers do.
    Right now, the servlet I made can deliver content to my application and I use shared preferences to ensure if the user is logged in or not.
    But from the server point of view, anyone can access those data if they specify the right parameter (e,g Postman) since HttpSession session = request.getSession(false) ; doesn't work.
    If you have any idea how to solve this problem so I can secure my data, please feel free to share it with me!
    Thank you
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...
Similar Threads - sessions between Android
  1. Lane Lester
    Replies:
    0
    Views:
    287
  2. Lane Lester
    Replies:
    5
    Views:
    362
  3. willsp28
    Replies:
    0
    Views:
    360
  4. Dave784
    Replies:
    2
    Views:
    656
  5. chethan1703
    Replies:
    0
    Views:
    737
  6. Rgarner
    Replies:
    24
    Views:
    677
  7. ofis berr
    Replies:
    0
    Views:
    369
  8. Derek M
    Replies:
    1
    Views:
    1,333
  9. Charles Whitnel
    Replies:
    3
    Views:
    632
  10. ashtray
    Replies:
    6
    Views:
    672

Share This Page

Loading...