Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6623589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:33:02+00:00 2026-05-25T21:33:02+00:00

Can IP change during session? What about different engines (PHP, Django, Ruby, etc) ?

  • 0

Can IP change during session?

What about different engines (PHP, Django, Ruby, etc) ?

PS: I don’t quite understand what is ‘dynamic ip’ and how they are held by internet providers… And how sessions are broken…

Update:
Should I track IP change for security? I’m currently working with PHP, so if the built in session system lacks security, please provide some code and algorithms

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T21:33:03+00:00Added an answer on May 25, 2026 at 9:33 pm

    IPs can change at any time – the idea behind HTTP is that each request is independent.

    There are only around 3 billion IPv4 addresses available worldwide. Some ISPs (most of them, actually) therefore assign IPs dynamically for each connecting client – so that when this client disconnects, the IP can be reused for someone else.

    As far as ‘sessions’ are concerned – it all depends on how the state is held. The most sane approach is to use a cookie – which allows you to connect from arbitrary IP, on an arbitrary medium – at which point, you should not be concerned with IP layers of the HTTP.

    But again, people are known for doing weird stuff, like using IPs for things they were never meant (in the OSI/IETF sense) for – like identification, authentication, etc.. This is doubly bad, because one IP can commonly mean many customers – for instance, your entire household likely shares the same public IP – what if you and your partner both visit the same site? How can the server tell the two of you apart?

    @update

    No, you shouldn’t track IP changes for ‘security’ – the only exception is if you can deal with geoIP features, and want to disable/annoy users of various anonymisation services.

    Basically, if your users connect directly (and not via proxy/TOR), it would be very likely that they will connect again from a nearby location. If your users connect once from the US, once from Russia – that can mean either that these are two different people (one of whom might’ve stolen the credentials), or that the user uses an anonymiser of sorts.

    If the site is a high-value target (banking, finance, central credentials (think Google Account)) – you could geo-lookup the IPs and compare if the distance changed by more than 100km in under an hour more than twice – this is likely fishy, and you can bug the user for extra credentials.

    Otherwise, you could display the last few IPs – but it’s likely an icing on the cake with little real value.

    @update2
    Security is a tricky subject – whenever you’re dealing with it, you need to answer two fundamental question:

    Security of what:
    what is so valuable that needs protecting

    • Privacy of users
    • Permissions granted to a user
    • Assets (physical or virtual)

    And security against what:
    What is the attack scenario you are concerned about

    • Cookie hijacking (firesheep) (just use SSL and be done with it for the most part – there is no way around the problem that HTTP is unencrypted and often over public radio)
    • Taking over accounts (require additional credentials for really sensitive stuff)
    • Defacing?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I understand how I can change the dns settings for my domains by editing
I understand that I can change a sql table using the follow sp: EXEC
I want to ask about reading the app config property value. I can change
You can change the connection string at run-time like this. You make the connection
I can change SQL at runtime. Can I do the same with LINQ ?
I can change the irb prompt mode with irb --prompt prompt-mode I can see
Can someone tell me how i can change the .xml file that a flash
Where I can change compiler options for C# project in VisualStudio 2008 (without command
I know I can change the selectionStyle of a UITableViewCell to make it highlight
Is there an app that can change the order of images inside an icon?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.